3D FlipBook - page caching after zoom-in/zoom-out/full-screen

s***t@gmail.com
2021-08-07
2021-08-20

Hi 3dflipbook team, I have an issue with caching pages, when I flip from left to right all pages loaded properly, and if move from left to right or vice versa it works fine without loading page again, but I zoomin/zoomout/fullscreen it will fetching pages again, I want to show same previously loaded page even after zoomin/zoomout/fullscreen

 $("#bookcontainer").FlipBook({
      controlsProps: page_props,
      pageCallback: preview,
      pages: nopages,
      controlsProps:{
        actions:{
          cmdSave:{
            enabled: false
          },
          cmdPrint: {
            enabled: false
          },
          cmdSounds: {
            active: false
          },
          cmdSinglePage: {
            active:page_props
          }
        },
      },
      cachedPages:50,
      renderWhileFlipping: "Yes",
      propertiesCallback: function (props) {
        return props;
      },
      ready: function (scene) {
        var handler = function (e) {
          scene.ctrl.removeEventListener("endFlip", handler);
        };
        scene.ctrl.addEventListener("endFlip", handler);
      },
      template: {
        html: base_url + 'assets/flipbook/templates/default-book-view.html',
        styles: [
          base_url + 'assets/flipbook/css/short-white-book-view.css'
        ],
        links: [{
          rel: 'stylesheet',
          href: base_url + 'assets/flipbook/css/font-awesome.min.css'
        }],
        script: base_url + 'assets/flipbook/js/default-book-view.js',
        init: base_url + 'assets/flipbook/safari-fa-init.html'
      }
    });

if I remove "renderWhileFlipping" sometime it stuck after zoomin/zoomout/fullscreen

please guide me how can I achieve this, thanks

Replies

a***r@3dflipbook.net
2021-08-20
2021-08-20

Hi, you need to disable autoResolution: https://3dflipbook.net/controls-customization

s***t@gmail.com
2021-08-24
2021-08-24

its not working even after adding autoResolution: { enabled: false }

I'm fetching with HTML not from PDF, is there anything I can do stop loading already loaded images after zoomin/zoomout and change to prev/next

Log In to leave a comment