Bug 7774

Summary: REGRESSION: Moving selection below bottom of overflow area causes selection to jump to end
Product: WebKit Reporter: Adele Peterson <adele>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: emark2k, ian, justin.garcia, lweintraub
Priority: P1 Keywords: InRadar, Regression
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
test case none

Description Adele Peterson 2006-03-14 23:00:11 PST
See test case.

Since the selection jumps to the end of the content in the overflow area, the layer won't vertically autoscroll correctly.

This works fine in the horizontal direction.
Comment 1 Adele Peterson 2006-03-14 23:06:49 PST
Created attachment 7074 [details]
test case
Comment 2 Adele Peterson 2006-05-09 17:07:38 PDT
CC'ing Justin and Levi so they can take a look
Comment 3 David Kilzer (:ddkilzer) 2006-07-15 13:03:46 PDT
I only see this original bug on a true text area, not the content-editable div in the test case.  (It may be related to the behavior of Bug 9936.)

The content-editable div doesn't scroll at all when click-dragging outside of its boundaries, which makes it impossible to highlight beyond the visible area by click-dragging.

Comment 4 David Kilzer (:ddkilzer) 2006-07-15 13:38:25 PDT
(In reply to comment #3)
> I only see this original bug on a true text area, not the content-editable div
> in the test case.  (It may be related to the behavior of Bug 9936.)

Tested using a locally-built WebKit r15458 with Safari 2.0.4 (419.3) on Mac OS X 10.4.7 (8J135/PowerPC).

> The content-editable div doesn't scroll at all when click-dragging outside of
> its boundaries, which makes it impossible to highlight beyond the visible area
> by click-dragging.

I should note that I can make the c-e div scroll down (vertically) ONE line while click-dragging, but that's it.  It doesn't scroll horizontally at all.

Comment 5 David Kilzer (:ddkilzer) 2006-07-20 10:19:14 PDT
*** Bug 10033 has been marked as a duplicate of this bug. ***
Comment 6 Adele Peterson 2006-07-23 01:59:38 PDT
in the normal overflow div case, try adding in a few <br>s to break up the text node, and I think you'll see how its broken in that case too.
Comment 7 Stephanie Lewis 2006-11-06 18:27:35 PST
<rdar://problem/4822922> REGRESSION: Moving selection below bottom of overflow area causes selection to jump to end
Comment 8 Justin Garcia 2007-02-20 12:44:21 PST
Although the overflow area now autoscrolls correctly, the selection still jumps to the end.  So, the bug described in the title still exists.  Adele?
Comment 9 Adele Peterson 2007-02-20 13:08:53 PST
I don't see the selection jump.  When you drag past the bottom, it appears that the selection stops updating, which seems like a separate problem.