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

Issue 76283003: touch: Fix touch-event hit-testing for multiple touch points. (Closed)

Created:
7 years, 1 month ago by sadrul
Modified:
7 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, piman+watch_chromium.org, jam, darin-cc_chromium.org, Yusuf
Visibility:
Public.

Description

touch: Fix touch-event hit-testing for multiple touch points. If the first touch press happens on a touch-region, but then moves out of that region, and the second press happens again on the touch-region, then the hit-test for the second finger would fail because the code used to only look at the position of the first touch point. Fix that to make sure the position of the new touch point is used for hit-testing. BUG=321457 R=jamesr@chromium.org, rbyers@chromium.org TBR=jochen@chromium.org for content_tests.gypi Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238289

Patch Set 1 #

Patch Set 2 : tests #

Total comments: 2

Patch Set 3 : . #

Patch Set 4 : test #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : tot-merge #

Total comments: 4

Patch Set 8 : . #

Patch Set 9 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -9 lines) Patch
M content/content_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu/input_handler_proxy.cc View 1 2 3 4 5 6 7 2 chunks +9 lines, -3 lines 0 comments Download
M content/renderer/gpu/input_handler_proxy_unittest.cc View 1 3 chunks +74 lines, -3 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -3 lines 0 comments Download
A content/renderer/render_widget_unittest.cc View 1 2 3 4 5 6 7 1 chunk +146 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
sadrul
7 years, 1 month ago (2013-11-19 17:54:07 UTC) #1
piman
->jamesr who understands this code better than I do.
7 years, 1 month ago (2013-11-19 20:37:27 UTC) #2
jamesr
I believe that the first-touch-is-the-only-one-that-matters choice was deliberate, but my memory is vague. Alex - ...
7 years, 1 month ago (2013-11-19 20:41:31 UTC) #3
jamesr
Why is there no bug? Have you tested this behavior on different platforms?
7 years, 1 month ago (2013-11-19 20:42:05 UTC) #4
Rick Byers
The intention for our design was that compositor touch hit testing should not change behavior ...
7 years, 1 month ago (2013-11-19 22:38:07 UTC) #5
sadrul
Filed a bug with a small demo that shows the bug.
7 years, 1 month ago (2013-11-20 05:51:23 UTC) #6
aelias_OOO_until_Jul13
I don't know offhand what's expected -- we should aim to match mobile Safari.
7 years, 1 month ago (2013-11-20 07:50:04 UTC) #7
Rick Byers
Thanks for the test case. So on Android a new TouchPressed is always at index ...
7 years, 1 month ago (2013-11-20 14:53:16 UTC) #8
Rick Byers
On 2013/11/20 07:50:04, aelias - OOO until Dec 9 wrote: > I don't know offhand ...
7 years, 1 month ago (2013-11-20 14:55:21 UTC) #9
sadrul
https://codereview.chromium.org/76283003/diff/80001/content/renderer/gpu/input_handler_proxy_unittest.cc File content/renderer/gpu/input_handler_proxy_unittest.cc (right): https://codereview.chromium.org/76283003/diff/80001/content/renderer/gpu/input_handler_proxy_unittest.cc#newcode1143 content/renderer/gpu/input_handler_proxy_unittest.cc:1143: touch.touches[2].position = WebPoint(-10, 10); On 2013/11/20 14:53:16, Rick Byers ...
7 years, 1 month ago (2013-11-20 20:11:37 UTC) #10
jamesr
Do we understand where the difference in behavior between Android and ChromeOS is? This isn't ...
7 years, 1 month ago (2013-11-20 20:49:49 UTC) #11
sadrul
On 2013/11/20 20:49:49, jamesr wrote: > Do we understand where the difference in behavior between ...
7 years, 1 month ago (2013-11-20 20:57:20 UTC) #12
sadrul
On 2013/11/20 20:49:49, jamesr wrote: > Do we understand where the difference in behavior between ...
7 years, 1 month ago (2013-11-20 21:10:51 UTC) #13
sadrul
On 2013/11/20 21:10:51, sadrul wrote: > On 2013/11/20 20:49:49, jamesr wrote: > > Do we ...
7 years, 1 month ago (2013-11-20 23:20:28 UTC) #14
Rick Byers
On 2013/11/20 23:20:28, sadrul wrote: > On 2013/11/20 21:10:51, sadrul wrote: > > On 2013/11/20 ...
7 years, 1 month ago (2013-11-20 23:57:35 UTC) #15
jamesr
Where's the test for the render_widget.cc change? Ideally we'd have one test that can run ...
7 years, 1 month ago (2013-11-21 00:21:05 UTC) #16
sadrul
On 2013/11/21 00:21:05, jamesr wrote: > Where's the test for the render_widget.cc change? Ideally we'd ...
7 years ago (2013-12-02 07:18:20 UTC) #17
jamesr
lgtm. unit tests are useful, but I was thinking that an integration level test that ...
7 years ago (2013-12-03 00:44:37 UTC) #18
sadrul
Thanks. I will look into adding an intergration test for this case. +jochen@ for content_tests.gypi ...
7 years ago (2013-12-03 03:20:00 UTC) #19
sadrul
7 years ago (2013-12-03 03:27:30 UTC) #20
Message was sent while issue was closed.
Committed patchset #9 manually as r238289 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698