Layout viewport and visual viewport

Read: https://developers.google.com/web/updates/2017/09/visual-viewport-api

Layout viewport is the viewport as we known already. Visual viewport is the viewport when we zoom-pinch, for example on mobile devices.

Position fixed elements only stick to layout viewport but not visual view port.

We can access visual viewport thru window.visualViewport.

Date: 2019-02-13 Wed 00:00

Author: Huy Tran

Created: 2019-04-22 Mon 14:40