darsain / sly

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

Fix vertical scroll when multiple columns of contents #278

Open jrsanches opened 7 years ago

jrsanches commented 7 years ago

Actually when i try to apply Sly in a div with 2 or more columns of content, the slidee size is too big. When 'o.verticalColumns' option is set, the slidee size will be calculated to show on the correct size. We divide the '_finalSize' with the number of columns as necessary. The '_middleItem' is item that appears in the bottom of the slidee box. We change the 'pos.end' to page navigation work correctly.

Sorry for the poor english. I'm starting.

Regards.