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

Not ending up on the first section after Next.js page transition #327

Open
gustavlrsn opened this issue May 13, 2022 · 9 comments
Open

Not ending up on the first section after Next.js page transition #327

gustavlrsn opened this issue May 13, 2022 · 9 comments
Labels
bug Something isn't working

Comments

@gustavlrsn
Copy link

gustavlrsn commented May 13, 2022

Description

Hello! I recently upgraded to v4 when I noticed this issue, the bug is not in v3.

I have multiple pages in Next.js with different fullpage sections, when doing a page transition I'm not always ending up on the first section.

Skarminspelning.2022-05-14.kl.00.34.11.mov

Reproduction

https://codesandbox.io/s/react-fullpage-page-transition-bug-5qre5d?file=/components/fullpage.js
(might need to open a new terminal and run yarn start and open a new browser in :3001, seems to be some issue with CodeSandbox)

Steps to reproduce it

  1. Click down the sections until you get to the last section
  2. Click link to the second page
  3. See that you end up on section number 2 and not the first one

Versions

Chrome, Mac OS

@alvarotrigo
Copy link
Owner

Thanks for reporting it!
I'll investigate it.

@alvarotrigo alvarotrigo added the bug Something isn't working label May 17, 2022
@dev-lukian
Copy link

Was this ever fixed? I am still having issues.

@alvarotrigo
Copy link
Owner

Not yet.

@dev-lukian
Copy link

@alvarotrigo Are there plans of fixing this soon? I am about to launch a project and this is a bug that is refraining me from doing so.

@alvarotrigo
Copy link
Owner

No plan. I might need external help to figure this out, as I'm not heavy on React or Next :)

@skoteskote
Copy link

Hi, any estimate on when it will be resolved? This issue is currently blocking us from upgrading to v4, which we really would like to do as it's much smoother.

@alvarotrigo
Copy link
Owner

alvarotrigo commented Aug 12, 2022

@skoteskote I've just tested it again and I can not reproduce the issue anymore here:
https://codesandbox.io/s/react-fullpage-page-transition-bug-5qre5d?file=/components/fullpage.js

Can you verify you still have the issue?

It might have been solved when updating the React wrapper to the latest fullPagejs version?

@dev-lukian
Copy link

I fixed this issue by adding fullpage_api.silentMoveTo(1) right after I switch to another page.

@devAdrish
Copy link

devAdrish commented Mar 22, 2023

Issue still exists. I was trying to do it with fullpage_api.moveTo(1) but was facing #405.
@dev-lukian thanks for this.

Point to be noted that it works fine if ReactFullpage is only the thing being rendered on the screen.
However, I also have a Header (position: fixed, zIndex: 10000), which breaks this. which shouldn't happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants