[Webkit-unassigned] [Bug 86423] Clicking/tapping close to the upper border of the input field moves the cursor to the beginning.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 21 12:11:37 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=86423


Ojan Vafai <ojan at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adele at apple.com,
                   |                            |hyatt at apple.com




--- Comment #7 from Ojan Vafai <ojan at chromium.org>  2012-05-21 12:10:40 PST ---
The solution I propose in comments 3/6 will not work. Specifically if you have a textarea/contentEditable div with the fixed height and click below the contents, the cursor should go at the end of the last line on Linux/Mac.

<div contentEditable style="padding: 20px; border: 2px solid; width: 100px; height: 100px">foo bar baz lorem ipsum dolor</div>

Clicking below "dolor" should put the cursor at the end of the line on Linux/Mac.

I'm not really sure what we can do to fix this. Someone suggested we could use a heuristic based off the line-height of a certain number of pixels above the first line / below the last line that we consider part of that line. That could work to fix default textarea/input padding at least.

FWIW, the original poster was wrong that this happens on Windows. This bug doesn't happen on Windows because platform convention there is to treat any click above the first line as being in the first line and similarly for the clicks below the last line.

-- 
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