darsain / sly

JavaScript library for one-directional scrolling with item based navigation support.
http://darsa.in/sly
2.87k stars 496 forks source link

Realtime update for scroller on mouse drag. Possible ? #120

Open promotion opened 10 years ago

promotion commented 10 years ago

Hi,

I'm looking for a solution that would allow me to make slider as the one on http://darsa.in/sly/ (green top, 3D tiles) however I need the tiles to be updated in real time during mouse dragging. (For now you will get middle activated when the mouse is released, what i need is while dragging elements that are passing center would become active)

Is there a native possibility for that ?

Thanks

promotion commented 10 years ago

Or maybe at least for non 3D - lest say for Force Centered version ?

darsain commented 10 years ago

Not right now. It is currently deferred to dragEnd for performance reasons. The next major version will work differently and will render states in real time. Now ETA though.

promotion commented 10 years ago

Any idea if this could be hacked more or less easily , without taking performance into consideration ?

darsain commented 10 years ago

No. The whole class assignment is currently designed with deferred rendering in mind. Checks whether you are dragging or not are all over the place.