darsain / sly

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

Separate 'activate' event from real UI mouse click and activate() method #277

Open gavrya opened 7 years ago

gavrya commented 7 years ago

Hi, SLY library is really great, thanks for it.

I need to avoid triggering 'active' event when i using activate() method or to have ability to determine the source of the event: it comes from UI or after activate() method.

Right now when i calling activate() method i receive 'activate' event witch is the same as from real UI mouse click event.

Please help me how i can separate 'activate' event that comes from UI click and from invoking activate() method?