Created
August 26, 2011 23:47
-
-
Save tilomitra/1174717 to your computer and use it in GitHub Desktop.
YUI3 Scrollview config to make scrolling feel smoother
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var scrollView = new Y.ScrollView({ | |
srcNode: '#resultList', | |
height: 260, | |
flick: { | |
minDistance:1, | |
minVelocity:0.4, | |
axis: "y" | |
}, | |
deceleration: 0.983, | |
bounce:0.65, | |
}); | |
Y.ScrollView.FRAME_STEP = 15; | |
Y.ScrollView.EASING = "cubic-bezier(0.000, 1.000, 0.320, 1.000)"; | |
var scrollView.render(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment