Chromium Code Reviews
DescriptionFixed two-finger pan filtering with 'touch-action: pan-x pan-y'.
For touch-action filtering, we treat a two-finger pan like a single-finger
pan. As a result, a 'touch-action: pan-x pan-y' region allows two-finger
panning but disallows pinch-zooming. This looks problematic:
- It is not easy for users to distinguish between two-finger panning vs
pinching.
- Edge's touch-action filtering treats a two-finger pan like a pinch-zoom
for a while.
- Popular embedded maps need to distinguish between two-finger vs
one-finger gestures through touch-action, where a two-finger gestures
is used to manipulate the map while a one-finger gesture is handled by
the browser. Here is a mock:
http://mustaqahmed.github.io/web/image-panning.html
This CL filters a two-finger pan like a pinch-zoom to solve this problem.
In addition to solving the bug, this CL also simplified the touch-action
filtering code around panning/zooming.
BUG=632525
Review-Url: https://codereview.chromium.org/2726623002
Cr-Commit-Position: refs/heads/master@{#456722}
Committed: https://chromium.googlesource.com/chromium/src/+/16ce460b6793b9fff0c1d4cc72deab60b921a159
Patch Set 1 #
Total comments: 2
Patch Set 2 : Non-const ref param -> pointer #
Total comments: 4
Patch Set 3 : Dave's comments. #
Messages
Total messages: 17 (8 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||