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

Unified Diff: Source/platform/scroll/ScrollableArea.cpp

Issue 197213011: Selectively disable rubber banding on mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
Index: Source/platform/scroll/ScrollableArea.cpp
diff --git a/Source/platform/scroll/ScrollableArea.cpp b/Source/platform/scroll/ScrollableArea.cpp
index af06540c5bcd3a037411713aa75eaa5027163db2..93255a2f630780614c4264c3067d4fa14e230df6 100644
--- a/Source/platform/scroll/ScrollableArea.cpp
+++ b/Source/platform/scroll/ScrollableArea.cpp
@@ -208,7 +208,12 @@ bool ScrollableArea::scrollBehaviorFromString(const String& behaviorString, Scro
bool ScrollableArea::handleWheelEvent(const PlatformWheelEvent& wheelEvent)
{
- return scrollAnimator()->handleWheelEvent(wheelEvent);
+ return handleWheelEvent(wheelEvent, true, true);
+}
+
+bool ScrollableArea::handleWheelEvent(const PlatformWheelEvent& wheelEvent, bool canRubberbandLeft, bool canRubberbandRight)
+{
+ return scrollAnimator()->handleWheelEvent(wheelEvent, canRubberbandLeft, canRubberbandRight);
}
// NOTE: Only called from Internals for testing.

Powered by Google App Engine
This is Rietveld 408576698