New issue
Advanced search Search tips
Starred by 4 users

Issue metadata

Status: Fixed
Closed: Jul 2017
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug

Blocked on:
issue 489206

Sign in to add a comment

Issue 740956: Touchpad pinch-zoom updates innerWidth

Reported by, Jul 11 2017 Project Member

Issue description

Chrome Version       : 61.0.3154.0
URLs (if applicable) :

What steps will reproduce the problem?
(1) Open above URL
(2) Pinch zoom on touchpad

What is the expected result?
Expect innerWidth to stay fixed at the layout viewport width.  As part of inert visual viewport ( bug 489206 ) the pinch-zoom state should not be exposed to JS except via the Viewport API.

What happens instead?
Instead it updates to match the visual viewport width.

Comment 1 by, Jul 11 2017

related WebKit bug:

Note that this bug is touchpad specific.  TouchSCREEN pinch-zoom does this correctly in Chrome.

I didn't test Windows/ChromeOS touchpad pinch-zoom.

Comment 2 by, Jul 11 2017

Components: -Blink>Input Blink>Scroll
Labels: -Pri-3 Hotlist-Input-Dev M-61 Pri-2
Status: Assigned (was: Unconfirmed)

Comment 3 by, Jul 18 2017

Status: Started (was: Assigned)

Comment 4 Deleted

Comment 5 by, Jul 18 2017

Also facing the same issue where innerWidth is not fixed when pinch-zoomed on my Android device running Chrome Canary 61.0.3160.0

Comment 6 by, Jul 18 2017

Labels: -OS-Mac OS-All
Yup, there's a bug that affects all platforms, not just Mac. I should have a fix in today.

Comment 7 by, Jul 19 2017

Project Member
The following revision refers to this bug:

commit 6933fe8a1b1d14e0d36a69cb27ef026217595d95
Author: David Bokan <>
Date: Wed Jul 19 22:39:54 2017

Remove inert-visual-viewport flag (enabled by default)

This patch removes the --enable-inert-visual-viewport flag from Chrome.
This does *not* remove the inertVisualViewport setting from Blink. This
feature is currently on by default but it was accidentally forced to the
off state by the existence of the command line flag. By removing the
flag, the Blink setting controls the status of this switch - which is
currently set to on.

Note: we're not losing anything as the feature is intended to be on by
default and we didn't have a matching --disable-inert-visual-viewport
flag so this flag would have been useless as of M61.

This patch fixes some tests that were expecting the flag to be off and
removes others that were explicitly testing behavior of the flag when
disabled. I also added a new test to test the new flag-on behavior.

This also exposed a bug in document.rootScroller, window's scrollX
and scrollY properties reverted to returning the FrameView's rather
than the rootScroller's scroll offset. This was caught by the
set-root-scroller.html test, I've commented out the checks
(rootScroller isn't yet shipped), and I'll fix the behavior in a
followup patch.

Bug:  740956 
Change-Id: I249a34b4ee67dfbe8230e6bc3048871a6325e43d
Reviewed-by: Rick Byers <>
Reviewed-by: Avi Drissman <>
Reviewed-by: Scott Violet <>
Reviewed-by: Nasko Oskov <>
Commit-Queue: David Bokan <>
Cr-Commit-Position: refs/heads/master@{#488018}

Comment 8 by, Jul 19 2017

Status: Fixed (was: Started)
This should be fixed in the next Canary update.

Sign in to add a comment