Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
YUI3 Scrollview config to make scrolling feel smoother
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
You can’t perform that action at this time.