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

Safari desktop inertial scrolling on scrollOverflow sections #4557

Open
dolnikmate opened this issue Jun 15, 2023 · 7 comments
Open

Safari desktop inertial scrolling on scrollOverflow sections #4557

dolnikmate opened this issue Jun 15, 2023 · 7 comments
Labels

Comments

@dolnikmate
Copy link

dolnikmate commented Jun 15, 2023

I have encountered an issue while using fullpage.js on Safari desktop. The problem arises when transitioning from fullscreen sections to a scrollable section (fp-auto-height with a lot of content, so its height is more than 100vh always, its scrollable because of that). It's only a safari issue on my end. Also i use the react-fullpage package for a nextjs project if that helps in determining the exact issue.

Here's the observed behavior: When I scroll from the fullscreen sections into the scrollable section, it seems to remember the initial swipe gesture used to transition between the sections. The scrollable section is mimicking the length of the swipe gesture made during the transition. The longer the swipe, the longer the scroll persists after reaching the scrollable section.

To provide a better understanding of this issue, I have recorded a video demonstration. Unfortunately, I am unable to record the actual project, but I have prepared a video showcasing the behavior on https://alvarotrigo.com/fullPage/extensions/scrolloverflow-reset.html . The video was captured on Firefox, where the behavior is the same as on Safari desktop for my project.

swipe.persist.fullpagejs.mov
@alvarotrigo
Copy link
Owner

https://alvarotrigo.com/fullPage/extensions/scrolloverflow-reset.html . The video was captured on Firefox, where the behavior is the same as on Safari desktop for my project.

This page is using the old version of fullPage.js, version 3. Which doesn't get updates anymore.

Are you able to reproduce the issue on the latest fullPage.js version 4.0.20?

@dolnikmate
Copy link
Author

I just used this link for demonstration purposes, because the behavior is the same.
But if necessary i specify my end: I'm using "@fullpage/react-fullpage": "^0.1.39" inside a nextjs app, and this is the snippet from my code, using the ReactFullpage component(content is cleared out of each section, but the fp-auto-height section is holding a lot of things inside, will be seen on the video).

fullpage-snippet

For demonstrating the exact behavior, i attach the following video:

behavior-showcase.mp4

@alvarotrigo
Copy link
Owner

Thanks for the clarification ;)

Yeap, looks like a bug.
I'll take a look at it, thanks for reporting it! 👍

@alvarotrigo alvarotrigo changed the title Safari desktop scrolling issue on transitions from fullscreen sections to scrollable sections Safari desktop inertial scrolling on scrollOverflow sections Jun 15, 2023
@dolnikmate
Copy link
Author

Hi, any update on this particular issue? Or a workaround i could use maybe?

@alvarotrigo
Copy link
Owner

Hi, any update on this particular issue? Or a workaround I could use maybe?

Nope.
This is way more tricky than it seems.

Safari keeps the inertial scrolling in the background and I can't find a way to get rid of it.
If you do, feel free to provide a PR ;)

@rouken-co
Copy link

+1 for this issue. If anyone finds a workaround please let me know!

@alvarotrigo
Copy link
Owner

@rouken-co @dolnikmate are you guys able to reproduce the issue here?
https://alvarotrigo.com/fullPage/examples/scrolling.html

I can't seem to do it the latest Safari Version 17.3.1 (19617.2.4.11.12).

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

3 participants