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

Slide transitions leads to empty slides #1282

Closed
Giuseppe499 opened this issue Feb 9, 2024 · 5 comments
Closed

Slide transitions leads to empty slides #1282

Giuseppe499 opened this issue Feb 9, 2024 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Giuseppe499
Copy link

Describe the bug
When slide transitions, such as

---
transition: slide-left
---

are enabled, an issue arises while scrolling through the presentation. If I navigate too quickly forward and backward through slides, the slides become empty. Unfortunately, these empty slides do not reset even if I change to another slide, resulting in a broken presentation.

The broken transitions are:

  • slide-left
  • slide-right
  • slide-up
  • slide-down

I tested it in Firefox and Chromium.

These transitions seem to work:

  • fade
  • fade-out

To Reproduce
Steps to reproduce the behavior:

  1. Enable slide transitions using the following configuration:
---
transition: slide-left
---
  1. Change slides quickly by going forward and backward without waiting animations to complete.
  2. Eventually you will get empty slides
  3. Attempt to reset the empty slides by changing to another slide.
  4. The slide should still be empty

Desktop:

  • OS: Kubuntu 22.04
  • Browser: Firefox 122.0 (64-bit)
  • Slidev version: v0.47.4
@pleonr
Copy link

pleonr commented Feb 9, 2024

Same error, But I didn't use transition: slide-left

I've just installed trough npm, and in the sample slide show, if you use the arrow keys to advance a few slides and go back a few times, eventually you will get empty slides.

@jgosmann
Copy link
Contributor

Also encountering the same problem. I tried multiple Slidev versions down to 0.43.0 and all were affected even though I believe the problem started to appear much more recently.

@KermanX KermanX added bug Something isn't working help wanted Extra attention is needed labels Feb 12, 2024
@jgosmann
Copy link
Contributor

I think I was able to figure out where the bug was introduced. With vue@3.4.15 everything seems to work fine, once I update to vue@3.4.16 the bug starts appearing (changelog).

vsantele added a commit to vsantele/intro-rag that referenced this issue Feb 14, 2024
@KermanX
Copy link
Member

KermanX commented Feb 17, 2024

It seems that this has been (finally) fixed by vuejs/core#10297 (vue@3.4.18).

Updating Slidev to the latest version or just updating Vue can fix this.

@KermanX KermanX closed this as completed Feb 17, 2024
@jgosmann
Copy link
Contributor

For me it is still broken in vue@3.4.18, but in vue@3.4.19 it seems to be fixed.

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

No branches or pull requests

4 participants