Scroll-snap animations should not start on axes with zero-delta
authorbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 May 2015 21:27:34 +0000 (21:27 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 May 2015 21:27:34 +0000 (21:27 +0000)
commitec5ce55ef088bc1ab6df2231df811b16c144b871
tree9046a889771a896191df8a8db265bc0d2924c3e9
parente83406e7a928a945be72d7c3dc61a345b7ecb2fd
Scroll-snap animations should not start on axes with zero-delta
https://bugs.webkit.org/show_bug.cgi?id=145148

Reviewed by Dean Jackson.

Don't begin a scroll snap animation on an axis that had no change in position (on that axis)
during the gesture.

* platform/cocoa/ScrollController.mm:
(WebCore::ScrollController::processWheelEventForScrollSnapOnAxis): Don't begin a scroll snap
animation if no movement on this axis was ever made.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@184589 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/cocoa/ScrollController.mm