Skip to content

Instantly share code, notes, and snippets.

@tilomitra
Created August 26, 2011 23:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tilomitra/1174717 to your computer and use it in GitHub Desktop.
Save tilomitra/1174717 to your computer and use it in GitHub Desktop.
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