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

how to disable fullpage js on ipad and enabe it on mobile? #4253

Open
akash-dew opened this issue Aug 25, 2021 · 1 comment
Open

how to disable fullpage js on ipad and enabe it on mobile? #4253

akash-dew opened this issue Aug 25, 2021 · 1 comment
Labels

Comments

@akash-dew
Copy link

Description

Link to isolated reproduction with no external CSS / JS

[Ideally in jsfiddle.net (https://jsfiddle.net/alvarotrigo/ea17skjr) or codepen.io (https://codepen.io/alvarotrigo/pen/NxyPPp), links to personal websites won't be reviewed unless isolated. Reported issues without a reproduction might get closed.]

Steps to reproduce it

  1. [First step]
  2. [Second step]
  3. [and so on...]

Versions

[Browser, operating system, device, ...]

@alvarotrigo
Copy link
Owner

There's no such thing as ipad or mobile.
Usually you want to deal with these issues considering resolution alone.

Your case is kind of the opposite of what people usually look for, but you can perhaps try to use the method fullpage_api.setResponsive to enable/disable it based on the size of the viewport.

You will probably have to use a flag to keep track of the state and the callback afterResize.

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

No branches or pull requests

2 participants