Faster Scrolling on Touch Devices

I have found an alternative to the Scroller kind in Enyo 1.0. It is working great in Android, probably iOS too.

Add GloveBox.js to your project and depends.js file.

Then add the snappy GloveBoxScroller kind:
enyo.kind({
name: "GloveBoxScroller",
kind: "Control",
create: function() {
this.inherited(arguments);
},
rendered: function() {
this.inherited(arguments);
var gloveBox = new GloveBox(this.parent.id);
}
});
Replace any Scoller kind with GloveBoxScroller and enjoy fast smooth scrolling!

This is just a start. There's lot to do but it will get us going.

Bug: Keeping the scrolling within the parent element!

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Twitter