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

Unified Diff: services/ui/ws/drag_controller.cc

Issue 2655303004: Add id properties to PointerEvent (Closed)
Patch Set: pointer id Created 3 years, 10 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
Index: services/ui/ws/drag_controller.cc
diff --git a/services/ui/ws/drag_controller.cc b/services/ui/ws/drag_controller.cc
index 2e05d26e10b427f970ce7e78b9bf64db78dafd31..476676da565070088de9cb376bc075dbb6a8dff8 100644
--- a/services/ui/ws/drag_controller.cc
+++ b/services/ui/ws/drag_controller.cc
@@ -86,7 +86,7 @@ bool DragController::DispatchPointerEvent(const ui::PointerEvent& event,
return false;
}
- if (event.pointer_id() != drag_pointer_id_)
+ if (event.pointer_details().id != static_cast<uint32_t>(drag_pointer_id_))
sadrul 2017/02/07 05:40:41 Make |drag_pointer_id_| a uint32_t too?
return false;
// If |current_target| doesn't accept drags, walk its hierarchy up until we

Powered by Google App Engine
This is Rietveld 408576698