[Webkit-unassigned] [Bug 141832] Viewport height is taller than the visible part of the document in some mobile browsers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 23 09:47:32 PST 2015


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

--- Comment #7 from Benjamin Poulain <benjamin at webkit.org> ---
(In reply to comment #6)
> Thanks for the explanation.
> 
> I suppose I will have to use JS instead of CSS for positioning the interface
> elements and adjust according to the "real" viewable area… :-/

For positioning, you can look into "fixed" and "sticky" positinioning. Those two modes creates layers that are composited in real time.

Both fixed and sticky positioning follow the view height and WebKit can handle them at 60FPS effortlessly.

If you use JavaScript for positioning while scrolling, you will need to be careful with this:
-resize events are only sent once for the small state or the large state. If you need continuous update, you need to check the window.innerHeight in response to touch events.
-To keep rendering in sync with scrolling, you must respond to each frame in less than ~16ms (in practice, really 9-10ms).

-- 
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/20150223/3c0aad5a/attachment-0002.html>


More information about the webkit-unassigned mailing list