[Webkit-unassigned] [Bug 237851] visualViewport.offsetTop is sometimes 0 when soft keyboard is open on web app mode

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Apr 2 03:09:29 PDT 2023


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

ik at rejh.nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ik at rejh.nl

--- Comment #2 from ik at rejh.nl ---
Just ran into a similar issue, but in my case it's reliable for installed web apps but not in regular safari. Sadly, attempts to write a simplified testcase result in correct behavior so can't help in that regard. 

Wrapping the code in the resize listener in a 'before next paint' (double rAF) fixes it - so similar to the OP's setTimeout workaround.

Is it possible that the visualViewport resize event sometimes fires too soon or the height calculation happens too late ?

-- 
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/20230402/dfb13536/attachment.htm>


More information about the webkit-unassigned mailing list