booklet
booklet copied to clipboard
Add page doesn't work good in RTL mode
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.
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 :)