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

Page Change Issue with Autoplay or Swiper Navigation in Nuxt 3 #872

Open
rjacinto30 opened this issue Jul 3, 2024 · 1 comment
Open
Assignees
Labels
🔖4.x v4.x~ related issue 🐛Bug Bugs 📦Vue3 @egjs/vue3-flicking related issue

Comments

@rjacinto30
Copy link

Description

An issue occurs in egjs-flicking when using it within a Nuxt 3 application. The issue manifests as unexpected behavior when changing routes within the application, specifically:

  • When Flicking's Autoplay feature is enabled.
  • When swiping to change panels in the Flicking component.

Expected Behavior:

Flicking should not crash on route change in Nuxt 3, regardless of Autoplay or swiping state.

Actual Behavior:

The issue exhibits itself in various ways, depending on the scenario:

  • With Autoplay enabled, and a user navigates to a new page, the whole page crashes.
  • During swiping, (if the swiper is still animating, like free drag), and a user navigates to a new page, the whole page crashes.
    In both cases, the user needs to force a page reload.

Reproduction Steps

  • Set up a Nuxt 3 project with egjs-flicking integration.
  • Create a Flicking component with Autoplay enabled.
  • Implement route navigation between pages containing the Flicking component.

OR

  • Set up a Nuxt 3 project with egjs-flicking integration.
  • Create a Flicking component that allows swiping to change panels.
  • Implement route navigation between pages containing the Flicking component.
  • Attempt to swipe to change panels while navigating between routes.

Expected Result:

  • Flicking should not crash on route change, regardless of Autoplay or swiping state.

Actual Result:
Page crashes. Console throws the error:
image

Additional Information

nuxt: 3.12.2
@egjs/vue3-flicking: 4.11.3
@egjs/flicking-plugins: 4.7.1
Browser(s) tested: Chrome, Chromium, Edge

@urbgimtam
Copy link

Could be related to #785 ?

@malangfox malangfox self-assigned this Jul 3, 2024
@malangfox malangfox added 🐛Bug Bugs 🔖4.x v4.x~ related issue 📦Vue3 @egjs/vue3-flicking related issue labels Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔖4.x v4.x~ related issue 🐛Bug Bugs 📦Vue3 @egjs/vue3-flicking related issue
Projects
None yet
Development

No branches or pull requests

3 participants