Open RickRyan26 opened 5 months ago
What are the specs of the phone? Is anyone else experiencing this issue?
I'm running the latest iPhone so it wont mean much when I say it's smooth on my end.
I know @tglide has an Android - are you able to reproduce this experience https://vaul-svelte.com/examples ?
Using a Pixel 7 pro. It happens when the scroll leads into the drag down
Yes, I can reproduce. Pixel 7 here, happening on FF and Chrome
https://github.com/huntabyte/vaul-svelte/assets/26071571/74a8ede4-0563-4878-98f3-e00501736b01
Thanks man! @TGlide - will look into this one!
I appreciate it!
Also when I load up a non-scrollable drawer with a lot of elements it negatively affects the drag's frame rate on my phone as well, BUT when that same drawer is triggered to open/close the animation is back to seamless. Why is that? I'm having trouble wrapping my head around it 😕
I'm pretty sure I know what introduced the issue. On certain devices/browsers when using mobile devices, pointerup
isn't fired when there is scrollable content on a "long press and drag", so I added touch
listeners to cover those cases. It seems that is causing some issues on your end as I'd bet both are firing and conflicting with one another, causing the lagginess to occur.
I'm looking into this now.
Brilliant idea. Hope you can detect if both exist and disable one if so
Describe the bug
This is happening on in Chrome on Android and destroys the silky smooth authentic.
Any thoughts on a fix?
Reproduction
The scrollable example has the problem
Logs
No response
System Info
Severity
annoyance