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

Unified Diff: components/exo/wayland/server.cc

Issue 2458853002: exo: Replace fling cancel with generic zero distance scroll
Patch Set: fixed unittest Created 4 years, 1 month 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
« components/exo/pointer.cc ('K') | « components/exo/pointer_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/wayland/server.cc
diff --git a/components/exo/wayland/server.cc b/components/exo/wayland/server.cc
index 7b3d47ed80040647c1ddc52cbfadf1d94d6f513a..f53557905a8a86f1cfc5041326dfb285b3245ceb 100644
--- a/components/exo/wayland/server.cc
+++ b/components/exo/wayland/server.cc
@@ -2112,12 +2112,6 @@ class WaylandPointerDelegate : public PointerDelegate {
WL_POINTER_AXIS_VERTICAL_SCROLL,
wl_fixed_from_double(-y_value));
}
- void OnPointerScrollCancel(base::TimeTicks time_stamp) override {
- // Wayland doesn't know the concept of a canceling kinetic scrolling.
- // But we can send a 0 distance scroll to emulate this behavior.
- OnPointerScroll(time_stamp, gfx::Vector2dF(0, 0), false);
- OnPointerScrollStop(time_stamp);
- }
void OnPointerScrollStop(base::TimeTicks time_stamp) override {
if (wl_resource_get_version(pointer_resource_) >=
WL_POINTER_AXIS_STOP_SINCE_VERSION) {
« components/exo/pointer.cc ('K') | « components/exo/pointer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698