3D FlipBook - Which event is called when we flip page using sheet?

m***a@unthinkable.co
2021-02-02
2021-02-04

Which event/function is called when we flip page using sheet? I need to call a custom event when we flip page from the pdf sheet itself. I could find the events flipLeft() and flipRight() but they are triggerred as soon as i hover on corner of the page. I need the event when the page number gets changed.

Replies

a***r@3dflipbook.net
2021-02-04
2021-02-04

There is no such, use startFlip and endFlip to organize what you need:

$('body').FlipBook({
...,
 ready: function(scene) {
  scene.ctrl.addEventListener('endFlip', function(e) { 
    console.log(scene.ctrl.getPageForGUI());
  });
}
})
Log In to leave a comment