spazproject / Spaz-Enyo

A version of Spaz targeted for tablet devices
http://getspaz.com
Other
45 stars 10 forks source link

Bind scroll events from mouse #51

Closed paddycarver closed 13 years ago

paddycarver commented 13 years ago

It would be pretty awesome if we could get the mouse scroll events to scroll columns.

funkatron commented 13 years ago

Yeah, I would love this. I suspect it might come in an Enyo update, but we may be able to find a workaround sooner.

dcousineau commented 13 years ago

If we do it ourselves, we may want to examine https://github.com/cubiq/iscroll and determine exactly how they achieve this, and/or suggest the Enyo team do the same.

Investigation lead to easily using jQuery and binding a "mousewheel" event (it's definitely doing some cross-browser refining in the background). As to whether Enyo propagates this event, etc, I have no clue as of yet.

funkatron commented 13 years ago

I actually got mousescroll working. Here's the problem: it doesn't trigger either the top ceiling of the column, or rendering elements outside of the current viewport. So you can scroll up past the apparent top of the column, and you can't see anything much beyond the currently rendered rows. Presumably this is because it's actually drag and flick gestures which drive the list.

I think we need to ask the Enyo folks themselves about this.

Ed Finkler http://funkatron.com @funkatron AIM: funka7ron / ICQ: 3922133 / XMPP:funkatron@gmail.com

On Tuesday, May 17, 2011 at 1:18 AM, dcousineau wrote:

If we do it ourselves, we may want to examine https://github.com/cubiq/iscroll and determine how they achieve this. And/or pass this down the aisle to the Enyo team.

Reply to this email directly or view it on GitHub: https://github.com/funkatron/Spaz-Enyo/issues/51#comment_1187854

dcousineau commented 13 years ago

Well technically we got this a long while back