Changeset 198269 in webkit
- Timestamp:
- Mar 16, 2016 2:36:29 AM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r198266 r198269 1 2016-03-16 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 REGRESSION(r195661): [GTK] very slow scrolling 4 https://bugs.webkit.org/show_bug.cgi?id=155334 5 6 Reviewed by Sergio Villar Senin. 7 8 Fix smooth scrolling behaviour change after r195661. 9 10 * platform/ScrollAnimationSmooth.cpp: 11 (WebCore::getAnimationParametersForGranularity): Fix a typo, 12 animationTime for pixel granularity should be 11 * tickTime. 13 (WebCore::ScrollAnimationSmooth::animateScroll): Previous code 14 reset all the data except the visibleLenght, so keep it in the 15 PerAxisData after the reset. 16 1 17 2016-03-16 Commit Queue <commit-queue@webkit.org> 2 18 -
trunk/Source/WebCore/platform/ScrollAnimationSmooth.cpp
r195661 r198269 258 258 break; 259 259 case ScrollByPixel: 260 animationTime = 1 * tickTime;260 animationTime = 11 * tickTime; 261 261 repeatMinimumSustainTime = 2 * tickTime; 262 262 attackTime = 3 * tickTime; … … 381 381 if (deltaTime > data.animationTime) { 382 382 double desiredPosition = data.desiredPosition; 383 int visibleLength = data.visibleLength; 383 384 data = PerAxisData(); 384 385 data.currentPosition = desiredPosition; 386 data.visibleLength = visibleLength; 385 387 return false; 386 388 }
Note: See TracChangeset
for help on using the changeset viewer.