[Webkit-unassigned] [Bug 135768] Implement scroll snapping animations on Mac

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 13 18:11:55 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=135768





--- Comment #8 from Dean Jackson <dino at apple.com>  2014-08-13 18:12:00 PST ---
(From update of attachment 236492)
View in context: https://bugs.webkit.org/attachment.cgi?id=236492&action=review

> Source/WebCore/page/scrolling/AxisScrollSnapOffsets.cpp:154
> +    if (scrollDestination >= snapOffsets.at(snapOffsets.size() - 1))
> +        return snapOffsets.at(snapOffsets.size() - 1);
> +
> +    size_t lowerIndex = 0;
> +    size_t upperIndex = snapOffsets.size() - 1;

If you move upperIndex to before the if, then you can use it there.

> Source/WebCore/platform/mac/AxisScrollSnapAnimator.mm:79
> +    return 16.6789 * initialWheelDelta;

Where does this come from?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list