darsain / sly

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

forceCentered + nextPage/prevPage issue #187

Closed sudodoki closed 9 years ago

sudodoki commented 9 years ago

Having config like this

    horizontal: 1,
    itemNav: 'centered',
    smart: 1,
    activateOn: 'click',
    mouseDragging: 1,
    touchDragging: 1,
    releaseSwing: 1,
    startAt: 0,
    activatePageOn: 'click',
    speed: 300,
    elasticBounds: 1,
    dragHandle: 1,
    dynamicHandle: 1,
    clickBar: 1
    prevPage: $wrap.find('.prevItem'),
    nextPage: $wrap.find('.nextItem'),
    scrollBy: 5

which works fine & my arrows scroll by whole page. But if I switch itemNav to 'forceCentered' my arrows will start scrolling only by one item at a time.

darsain commented 9 years ago

Yes. That is a documented behavior.

I guess I should also add it to option docs.