[Webkit-unassigned] [Bug 238093] preventScroll does not work with dynamically created elements
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Mar 18 14:17:42 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=238093
--- Comment #4 from Simon Fraser (smfr) <simon.fraser at apple.com> ---
Layout calls FrameSelection::setNeedsSelectionUpdate() which resets m_selectionRevealMode to SelectionRevealMode::Reveal here:
if (innerTextSizeChanged && frame().selection().isFocusedAndActive() && document().focusedElement() == &inputElement()) {
// The caps lock indicator was hidden or shown. If it is now visible then it may be occluding
// the current selection (say, the caret was after the last character in the text field).
// Schedule an update and reveal of the current selection.
frame().selection().setNeedsSelectionUpdate(FrameSelection::RevealSelectionAfterUpdate::Forced);
}
This is trying to ensure that text within the input is scrolled into view, but has the side effect of also triggering page scrolling.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220318/c37417ea/attachment-0001.htm>
More information about the webkit-unassigned
mailing list