[Webkit-unassigned] [Bug 74346] New: Text selection in text area in auto scroll mode goes wrong.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Dec 12 14:52:48 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=74346
Summary: Text selection in text area in auto scroll mode goes
wrong.
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh Intel
OS/Version: Mac OS X 10.7
Status: NEW
Severity: Normal
Priority: P2
Component: HTML Editing
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: Michael.Tyutyunik at nokia.com
CC: yael.aharon at nokia.com, rniwa at webkit.org
In order to reproduce have a text area filled with a text long enough to be able to scroll the text area up and down.
- Scroll the text area down to the end.
- Slowly start dragging your mouse starting from the some place in the line closets to the upper edge of the text area.
- Once the contents of the text area get scrolled a little notice that the selection jumped down to the end.
The selection is not following the current scroll position of the text. If mouse is moved slightly down auto scrolling stops and selection is getting updated to the correct position. If mouse position is not changed then when left button is released the end of the selection can be either at the end of the text or closer to the correct position (where mouse down happened) depending on how much scrolling was done.
When auto scrolling is on updateSelectionForMouseDrag() is invoked. Inside we call:
VisiblePosition targetPosition = selectionExtentRespectingEditingBoundary(m_frame->selection()->selection(), hitTestResult.localPoint(), target);
>From what I could see when we start dragging mouse up the offset of the targetPosition is pointing to the end of the text.
Reproducible on Mac with Chrome version 15.0.874.121
It might me the same issue as https://bugs.webkit.org/show_bug.cgi?id=31581
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list