https://bugzilla.wikimedia.org/show_bug.cgi?id=32241

--- Comment #7 from Lupo <[email protected]> 2011-11-11 07:31:03 UTC ---
Here's my conjecture:

On mousedown on the button, we get the current selection. To do so, we need a
textarea.focus() on IE. IE8 seems to scrollIntoView() the textarea upon focus
under the above circumstances (small window, textarea not wholly visible and
not already at the top of the viewport -- which it never is, because then the
button would not be visible).

After that scrollIntoView(), the element under the mouse pointer no longer is
the button, but the textarea itself. When the mouse button is released, the
button does not get that event, and thus doesn't trigger the click(), since it
never sees the mouseup.

Hence the question is "how to prevent IE to scrollIntoView() the textarea upon
textarea.focus()?"

Maybe suppressing the propagation of the resulting focusin event on the
textarea.

If that's not possible, another approach might be getting and re-setting the
global (document's) scrollTop/scrollLeft anywhere you focus() inside the
mousedown of such a mousedown-click construction.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to