[Webkit-unassigned] [Bug 191185] New: Viewport is not scrolled to the selection on typing in contentEditable or textarea
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Nov 2 03:22:07 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=191185
Bug ID: 191185
Summary: Viewport is not scrolled to the selection on typing in
contentEditable or textarea
Product: WebKit
Version: Safari 12
Hardware: iPhone / iPad
OS: iOS 12
Status: NEW
Severity: Normal
Priority: P2
Component: HTML Editing
Assignee: webkit-unassigned at lists.webkit.org
Reporter: pkoszulinski at gmail.com
CC: wenson_hsieh at apple.com
I think this is a recent regression because this started to be reported to us very recently (e.g. in https://github.com/ckeditor/ckeditor5/issues/1321).
To reproduce (on iOS):
1. Open https://jsfiddle.net/hzkfdrgw/
2. Place the selection in the textarea. Press the enter a couple of times.
3. Scroll the viewport so the caret goes off screen.
4. Type something.
Expected behaviour: the viewport is scrolled to show the selection.
Actual behaviour: the viewport is not scrolled.
Screencast: http://sendvid.com/qzpnxe3h
Severity: This is a quite serious issue due the fact that is super hard to create a workaround for it that would work in mobile Safari due to Safari's broken viewport when the software keyboard is visible. My tests (https://github.com/ckeditor/ckeditor5/issues/1321#issuecomment-435330662) show that on all other browsers we can reliably show the selection by playing with `window.scrollTop`. But that algorithm doesn't work in mobile Safari. I'll be filling a separate bug report about the viewport.
--
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/20181102/c347bc05/attachment.html>
More information about the webkit-unassigned
mailing list