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

Unified Diff: third_party/WebKit/Source/core/input/PointerEventManager.cpp

Issue 2770713006: Filter out stationary touches from coalesced list (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/input/PointerEventManager.cpp
diff --git a/third_party/WebKit/Source/core/input/PointerEventManager.cpp b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
index 61a5f01cdb83edccb0ac205f84e4d1482f67325a..f87a643448803b781d5690ca3976343bafcf0a79 100644
--- a/third_party/WebKit/Source/core/input/PointerEventManager.cpp
+++ b/third_party/WebKit/Source/core/input/PointerEventManager.cpp
@@ -39,8 +39,8 @@ Vector<WebTouchPoint> getCoalescedPoints(
Vector<WebTouchPoint> relatedPoints;
for (const auto& touchEvent : coalescedEvents) {
for (unsigned i = 0; i < touchEvent.touchesLength; ++i) {
- // TODO(nzolghadr): Need to filter out stationary points
- if (touchEvent.touches[i].id == id)
+ if (touchEvent.touches[i].id == id &&
+ touchEvent.touches[i].state != WebTouchPoint::StateStationary)
relatedPoints.push_back(touchEvent.touchPointInRootFrame(i));
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698