3D FlipBook - Found a bug about cmdSinglePage behaviour

n***r@cargo-services.fr
2021-01-12
2021-01-13

Hello,

Very nice work about this neat plugin.

I think I've found a bug. I'm a frontend developer and showing a test based on your plugin to the marketing team, they told me that they didn't have the same render. They were telling me that the book is moving from right to left at each page, that was strange. Then I thought "Are they on mobile ?.." but no. So I search.

I fact they are on Apple products (Mac Book, Mac Pro etc) and their screens are Retina displays, so their density of pixel are greater than 1, and if you remember how you handle the cmdSinglePage, you'll understand the problem :

singlePage: _this.actions['cmdSinglePage'].active || _this.actions['cmdSinglePage'].activeForMobile && _this.devicePixelRatio > 1,

Then, even if I filled the option correctly :

controlsProps: {
    actions: {
        cmdSinglePage: {
            activeForMobile: true
        }
    }
}

Single page mode is activated on "desktop" devices with high density screens.

You can easily reproduce this on Firefox, F12, enabled Responsive tab and change DPR next to sizes. Hope it'll help.

Thanks, Nicolas.

Replies

n***r@cargo-services.fr
2021-01-12
2021-01-12

Oh ok, I've just buy the pro version and it seems to be modified in this version. So my observations are for the free demo version.

a***r@3dflipbook.net
2021-01-13
2021-01-13

Hi, demo is outdated, it has a lot of bugs, but it is just demo for general understanding.

n***r@cargo-services.fr
2021-01-13
2021-01-13

Hi, Ok, ok. In my opinion it could be a good thing that the demo stay updated, but still limited, because I was thinking about giving up with this plugin because of that, thinking that this single page behaviour was bugged and couldn't fit my project. Thanks for the answer.

r***k@gmail.com
2021-06-16
2021-06-16

We have multiple problems of such kind at gridnet.org/whitepaper would you please aid us? Certainly we've been using the pro version, no sure if the license key needs to be input anywhere to get rid of the 'bugs'?

Log In to leave a comment