darsain / sly

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

Keyboard navigation controls multiple galleries instead of one #179

Closed notacouch closed 9 years ago

notacouch commented 9 years ago

I have 2 galleries with the keyboardNavBy: 'items' option on the same page, navigating one via keyboard navigates the other and vice versa.

darsain commented 9 years ago

Than don't enable keyboard navigation for multiple galleries. Sly does what you tell him to do.

keyboardNavBy is a dynamic option, so you can do .set('keyboardNavBy', whatever) without re-creating Sly instance.