visualViewport resize/scroll events not fired when browser zoom changed |
||||
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
,
Aug 10 2016
,
Aug 14 2016
,
Sep 9 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/2ad494069b0447cc2d32c844ce6eb991cc129bd1 commit 2ad494069b0447cc2d32c844ce6eb991cc129bd1 Author: ymalik <ymalik@chromium.org> Date: Fri Sep 09 18:09:13 2016 Fire visualViewport resize event when browser zoomed BUG= 636421 Review-Url: https://codereview.chromium.org/2249483002 Cr-Commit-Position: refs/heads/master@{#417632} [modify] https://crrev.com/2ad494069b0447cc2d32c844ce6eb991cc129bd1/third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-dimensions-under-browser-zoom.html [modify] https://crrev.com/2ad494069b0447cc2d32c844ce6eb991cc129bd1/third_party/WebKit/Source/core/frame/FrameView.cpp
,
Sep 13 2016
|
||||
►
Sign in to add a comment |
||||
Comment 1 by bokan@chromium.org
, Aug 10 2016