Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyways to make two pages view on mobile? #56

Open
gokul1630 opened this issue Dec 21, 2024 · 2 comments
Open

Anyways to make two pages view on mobile? #56

gokul1630 opened this issue Dec 21, 2024 · 2 comments

Comments

@gokul1630
Copy link

Hi, I want to know if there is any possibility of adding two pages view on mobile view?

@sc0rp10n-py
Copy link

Hi did you find any? @gokul1630

@gokul1630
Copy link
Author

Hi @sc0rp10n-py, I used the below config for achieving two pages on mobile

const isMobile = window.innerWidth <= 1024;
new PageFlip(demobook, {
                    minWidth: 315,
                    maxWidth: 1024,
                    minHeight: 420,
                    maxHeight: 500,
                    usePortrait: !isMobile,
                    width: isMobile ? window.innerWidth / 2 : 550,
                    height: isMobile ? window.innerWidth / 1.5 : 733,
                });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants