Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(550)

Issue 2584393003: PDF viewer: Specify that the touchstart listener not be passive. (Closed)

Created:
4 years ago by Kevin McNee
Modified:
4 years ago
Reviewers:
bokan, raymes
CC:
chromium-reviews, arv+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PDF viewer: Specify that the touchstart listener not be passive. In the PDF viewer's touchstart listener, we call preventDefault on two finger touches to prevent native pinch-zoom. Hence, this listener cannot be passive. Currently, we do not specify whether our touch handlers are passive, so if listeners are passive by default, the call to preventDefault is ignored and native pinch-zoom is invoked. We now specify the passive option when adding touch event listeners. BUG=675730 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/16b6154685aff544f8870a8ca164d0181881c038 Cr-Commit-Position: refs/heads/master@{#440440}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -9 lines) Patch
M chrome/browser/resources/pdf/gesture_detector.js View 1 chunk +8 lines, -4 lines 0 comments Download
M chrome/test/data/pdf/gesture_detector_test.js View 2 chunks +20 lines, -5 lines 0 comments Download

Messages

Total messages: 20 (12 generated)
Kevin McNee
Hello, raymes@. Can you take a look at this change?
4 years ago (2016-12-20 00:23:01 UTC) #3
raymes
It looks like dpapad and bokan reviewed this code previously. Could one of them take ...
4 years ago (2016-12-20 04:12:57 UTC) #8
Kevin McNee
bokan@: Hi. Could you take a look at this change?
4 years ago (2016-12-20 15:23:07 UTC) #11
bokan
lgtm
4 years ago (2016-12-21 14:43:07 UTC) #12
raymes
lgtm
4 years ago (2016-12-21 22:43:24 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2584393003/1
4 years ago (2016-12-22 15:32:54 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-22 16:53:47 UTC) #18
commit-bot: I haz the power
4 years ago (2016-12-22 16:56:55 UTC) #20
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/16b6154685aff544f8870a8ca164d0181881c038
Cr-Commit-Position: refs/heads/master@{#440440}

Powered by Google App Engine
This is Rietveld 408576698