booklet icon indicating copy to clipboard operation
booklet copied to clipboard

Add page doesn't work good in RTL mode

Open arnoldsimha opened this issue 12 years ago • 1 comments

When using RTL mode and booklet("add") some strange thing is happening, after the add function booklet jump to different page and not stays on the current page.

arnoldsimha avatar Oct 15 '12 19:10 arnoldsimha

I found a workaround: Add to addPage method next code just before destroyPages() event:

if (options.direction == directions.rightToLeft) { if (index > 0 && (index % 2) == 0) { options.currentIndex += 2; } if (options.currentIndex < 0) { options.currentIndex = 0; } }

This worked for me :)

arnoldsimha avatar Oct 15 '12 22:10 arnoldsimha