builtbywill / booklet

jQuery Plugin - display web content in a flipbook
http://builtbywill.com/booklet
Other
292 stars 109 forks source link

Add page doesn't work good in RTL mode #7

Open arnoldsimha opened 12 years ago

arnoldsimha commented 12 years ago

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 commented 12 years ago

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 :)