RESOLVED FIXED 5911
REGRESSION: Page scroll position jumps when clicking on word in editable div
https://bugs.webkit.org/show_bug.cgi?id=5911
Summary REGRESSION: Page scroll position jumps when clicking on word in editable div
Dan Wood
Reported 2005-12-01 17:15:58 PST
Steps: * Take the attached reduced test case, and open in a TOT browser with the window short enough to have a vertical scrollbar. * Click (or double-click) on a word somewhere in the body text (which is marked as contentEditable) What should happen: * You should enter editing mode without having the scroll position jump. Very disconcerting, especially if it was a double-click and you expected to select a word!) What actually happens: * Scroll position jumps so that the top of the editable div is at the top of the webview. Analysis: Somebody was probably trying to be helpful by maximizing the amount of text you can see when you begin editing. But the jump is annoying, and more confusing. The scroll jump does not happen when you are scrolled way down in the text and the entire webview is filled with the editable div.
Attachments
Reduced Test Case: HTML, stylesheets, javascript needed to reproduce (6.17 KB, text/html)
2005-12-01 17:16 PST, Dan Wood
no flags
patch (26.48 KB, patch)
2005-12-21 00:17 PST, Adele Peterson
darin: review+
Dan Wood
Comment 1 2005-12-01 17:16:31 PST
Created attachment 4899 [details] Reduced Test Case: HTML, stylesheets, javascript needed to reproduce
Alexey Proskuryakov
Comment 2 2005-12-02 14:16:29 PST
Bumping priority to P1 (regression from the latest released version). Goes via this code path: <http://www.opendarwin.org/pipermail/webkit-changes/2005-October/ 001356.html>
Adele Peterson
Comment 3 2005-12-02 14:37:42 PST
I'll take this one. Right now the scrolling code is getting triggered by setFocusNode when you click on the div. I think we need to move the call to scrollRectToVisible so we can be more precise about what kind of scrolling behavior we want depending on what caused the node to be focused.
Adele Peterson
Comment 4 2005-12-02 17:11:50 PST
<rdar://problem/4363794> REGRESSION: Page scroll position jumps when clicking on word in editable div (5911)
Adele Peterson
Comment 5 2005-12-08 20:11:11 PST
I have a TOT fix for this in my tree- but I'm still working out a few kinks.
Adele Peterson
Comment 6 2005-12-21 00:17:31 PST
Darin Adler
Comment 7 2005-12-21 01:37:00 PST
Comment on attachment 5198 [details] patch Nice simplification, too. Looks great. r=me
Note You need to log in before you can comment on or make changes to this bug.