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

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

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/ScrollElasticityController.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/mac/ScrollElasticityController.mm
diff --git a/Source/platform/mac/ScrollElasticityController.mm b/Source/platform/mac/ScrollElasticityController.mm
index 0ab305b6ab91823e3ff09e4e30feebf082a77ac4..2a78c271c290279388db28ab8dbcc5c5b12b36a5 100644
--- a/Source/platform/mac/ScrollElasticityController.mm
+++ b/Source/platform/mac/ScrollElasticityController.mm
@@ -357,7 +357,7 @@ void ScrollElasticityController::snapRubberBandTimerFired()
m_stretchScrollForce.setWidth(reboundDeltaForElasticDelta(newStretch.width()));
m_stretchScrollForce.setHeight(reboundDeltaForElasticDelta(newStretch.height()));
} else {
- m_client->immediateScrollBy(m_origOrigin - m_client->absoluteScrollPosition());
+ m_client->adjustScrollPositionToBoundsIfNecessary();
stopSnapRubberbandTimer();
m_stretchScrollForce = FloatSize();
« no previous file with comments | « Source/platform/mac/ScrollElasticityController.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698