Snappier YUI3 Scrollview

YUI3 Scrollview is great but sometimes, it’s not “nativey” enough for me. I fooled around a lot with the config parameters and finally found one that I think works well (especially on iOS). Try this config object to make your YUI3 Scrollview instance feel a little snappier.


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();

Comments are closed.

Up Next:

Making an iOS-Style Popover with YUI3

Making an iOS-Style Popover with YUI3