Author Topic: How to keep the book always open  (Read 2518 times)


  • Newbie
  • *
  • Posts: 2
How to keep the book always open
« on: October 13, 2010, 05:01:11 PM »

just wondering if it is possible to prevent last page from turning in order to have the book always open (I am using v 1.38).
I know I could use 'postpage' attribute but the problem is that the last page has to be interactive (clickable links).

Is there any easy way to achive this?

I've managed to allow new attribute in the <book> node: turnLastPage="true|false" but I do not know where in the code I could switch off the page turn...
« Last Edit: October 13, 2010, 05:08:12 PM by mstr »


  • Newbie
  • *
  • Posts: 2
Re: How to keep the book always open
« Reply #1 on: October 14, 2010, 10:25:57 AM »
I found a temporary solution, not perfect though.
I use the 'postpage' attribute and as a source I use a simple SWF file which has clickable links.

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1972
  • MegaZine3 Developer
    • MegaZine3
Re: How to keep the book always open
« Reply #2 on: October 15, 2010, 07:16:11 AM »
I was going to suggest that solution ;)

If you want to change the code, the right spot would probably be in the DragHandler's gotoPage function (check at the start of the function whether the page turn is allowed, if not simply return).
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.