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

Unified Diff: Source/platform/mac/ScrollElasticityController.h

Issue 282743002: Fix page jumping back to initial position after an overflow-bounce scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove whitespace from TestExpectations that was causing a rebase failure. Created 6 years, 7 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 | « Source/platform/mac/ScrollAnimatorMac.mm ('k') | Source/platform/mac/ScrollElasticityController.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/mac/ScrollElasticityController.h
diff --git a/Source/platform/mac/ScrollElasticityController.h b/Source/platform/mac/ScrollElasticityController.h
index 180e79c9335c9e0cd8c93f143b85de2e5f774eb4..e43511ec0717ece7e037c23267c44c7a446e062c 100644
--- a/Source/platform/mac/ScrollElasticityController.h
+++ b/Source/platform/mac/ScrollElasticityController.h
@@ -57,6 +57,10 @@ public:
virtual void immediateScrollByWithoutContentEdgeConstraints(const FloatSize&) = 0;
virtual void startSnapRubberbandTimer() = 0;
virtual void stopSnapRubberbandTimer() = 0;
+
+ // If the current scroll position is within the overhang area, this function will cause
+ // the page to scroll to the nearest boundary point.
+ virtual void adjustScrollPositionToBoundsIfNecessary() = 0;
};
class ScrollElasticityController {
« no previous file with comments | « Source/platform/mac/ScrollAnimatorMac.mm ('k') | Source/platform/mac/ScrollElasticityController.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698