New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 636421 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
(currently inactive on Chromium)
Closed: Sep 2016
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug

Blocking:
issue 595826



Sign in to add a comment

visualViewport resize/scroll events not fired when browser zoom changed

Project Member Reported by bokan@chromium.org, Aug 10 2016

Issue description

Version: 54.0.2824.0
OS: Linux

What steps will reproduce the problem?
(1) Enable chrome://flags/#enable-experimental-web-platform-features
(2) On any page, open DevTools and add a 'resize' handler on the visualViewport object. E.g.:
> window.visualViewport.addEventListener('resize', function() {console.log('VisualViewport resized!');});
(3) Use Ctrl+/- to zoom the page

What is the expected output?
The 'resize' event should fire and the log message should appear in DevTools' console since clientWidth/Height changed.

What do you see instead?
Nothing
 

Comment 1 by bokan@chromium.org, Aug 10 2016

Similarly, Ctrl+/- can change the pageX/Y values (due to precision issues mostly I think) and that should fire a scroll event as well.

Comment 2 by bokan@chromium.org, Aug 10 2016

Summary: visualViewport resize/scroll events not fired when browser zoom changed (was: visualViewport resize event not fired when browser zoom changed)

Comment 3 by ymalik@chromium.org, Aug 14 2016

Status: Started (was: Assigned)

Comment 5 by ymalik@chromium.org, Sep 13 2016

Status: Fixed (was: Started)

Sign in to add a comment