[Webkit-unassigned] [Bug 176205] On webkit ios there is now way for accounting for virtual keyboard height

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Mar 9 19:34:02 PST 2019


--- Comment #10 from Ryosuke Niwa <rniwa at webkit.org> ---
(In reply to Sam Saffron from comment #9)
> (In reply to Wenson Hsieh from comment #7)
> > The visual viewport API should assist with this (see:
> > https://bugs.webkit.org/show_bug.cgi?id=170982), but note that this is
> > currently only enabled by default in trunk WebKit.
> As soon as trunk is folded into an iOS beta I would be glad to test this.
> Let me know.
> I am also with @Sheng, I found `window.innerHeight` to be incredibly
> unreliable on current iOS. It sometimes works and changes, but sometimes it
> takes 10-20 seconds in polling every millisecond to change when virtual
> keyboard is expanded. 
> Our current approach here is just to force users to tick a box that says
> "hey, I am using a physical keyboard on my iPad"

With visual viewport API, can just listen for "resize" event on window.visualViewport.

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/20190310/4bae7ea0/attachment.html>

More information about the webkit-unassigned mailing list