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

Unified Diff: sky/engine/platform/scroll/ScrollableArea.cpp

Issue 870073003: Remove mouse events from Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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: sky/engine/platform/scroll/ScrollableArea.cpp
diff --git a/sky/engine/platform/scroll/ScrollableArea.cpp b/sky/engine/platform/scroll/ScrollableArea.cpp
index c650c48c710f6e2daf65ff54a42d7ec527988564..14cb534e092d70d7779403d3799b22313ccda69c 100644
--- a/sky/engine/platform/scroll/ScrollableArea.cpp
+++ b/sky/engine/platform/scroll/ScrollableArea.cpp
@@ -181,15 +181,6 @@ bool ScrollableArea::scrollBehaviorFromString(const String& behaviorString, Scro
return true;
}
-bool ScrollableArea::handleWheelEvent(const PlatformWheelEvent& wheelEvent)
-{
- // ctrl+wheel events are used to trigger zooming, not scrolling.
- if (wheelEvent.modifiers() & PlatformEvent::CtrlKey)
- return false;
-
- return scrollAnimator()->handleWheelEvent(wheelEvent);
-}
-
void ScrollableArea::setScrollOffsetFromAnimation(const IntPoint& offset)
{
scrollPositionChanged(offset);

Powered by Google App Engine
This is Rietveld 408576698