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
[Feature Request] v-slide-group momentum and scroll lock #10673
Comments
I would love to do this, but I need help with this particular one. |
partially implements #10673 Co-authored-by: John Leider <john.j.leider@gmail.com>
Implemented vertical scroll issues in #11571. We'll work on momentum for v3. |
Changes from #11571 don't let the user scroll at all on phones. https://jsfiddle.net/dumptyd/r96botke/ |
We are experiencing the oposite issue: when the user is clearly trying to scroll vertically, the slider is highjacking the scroll and not producing vertical scroll. This can be tested in the documentation. |
Hi ! Same problem as @AeonFr here. So i added some custom code to improve user experience on mobile. v-touch: https://vuetifyjs.com/en/directives/touch-support/ So i have a child component "Slider" where is one of my vuetify sliders. I putted my v-touch on v-slide-item and $emit the event to my parent component:
As you see, my parent will have the direction and the index of my DOM element. I have 4 sliders on my page so i added #id on each slider "#vertical-position"+index. If you have just only one slider, you don't need this dynamic code and just need to scroll to a static id element on top or bottom according to the direction of the touch (see my parent code below. The scroll go to my header or footer depending on whether it comes from the first slider child or last one)
Hope this can help someone and sorry for my baguette English ;) |
Sooo.. my temporary solution above is bad too because this is an assisted scroll (#div to #div), not very smooth. And more important, i reproduced the same problem as @jaunt when navigating on the site and come back on my slider page. I haven't seen it earlier. So i just display a custom div with css overflow-y. Native scroll on mobile is better. And display vuetify slider only on desktop for now. |
We used vue-awesome-swiper and we're very happy with the API and all the
customization options it offers
El jue., 30 jul. 2020 16:52, Elis4beth <notifications@github.com> escribió:
… Sooo.. my temporary solution above is bad too because this is an assisted
scroll (#div to #div), not very smooth. And more important, i reproduced
the same problem as @jaunt <https://github.com/jaunt> when navigating on
the site and come back on my slider page. I haven't seen it earlier. So i
just display a custom div with css overflow-y. Native scroll on mobile is
better. And display vuetify slider only on desktop for now.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10673 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACZS4IS7ERUABAPLVCPRBWTR6GCKDANCNFSM4K3QP6BA>
.
|
Vertical scroll seems to be broken as mentioned above. I have a list of feeds, something like netflix, and now a user can't scroll unless they grab in-between feeds which is awkward and unexpected. The solution I proposed originally was to only lock vertical scrolling once horizontal scrolling was detected, then release that lock the moment it stopped. My hack for now, in case it helps anyone:
|
This was great, I ended up using
When I used auto, i found my x-axis carousel scrolling was choppy and not as smooth as when I used pan-y. |
Thanks both! |
fixes vuetifyjs#12293/npartically fixes vuetifyjs#10673
This comment has been minimized.
This comment has been minimized.
try this
|
We kindly ask users to not comment on closed/resolved issues. If you believe that this issue has not been correctly resolved, please create a new issue showing the regression or create a new discussion. If you have any questions, please reach out to us in our Discord community. |
Problem to solve
On mobile touch based devices, if you try swiping left and right the experience is not ideal. First, there's no momentum when you let go -- the illusion of physical weight. Second, as you try to swipe through content horizontally, finger movements in the vertical direction cause the screen to scroll up and down unexpectedly.
Proposed solution
Once horizontal swipe intent is determined, vertical scroll passthrough should be temporarily disabled. Add realistic gestures like momentum scrolling: https://material.io/design/interaction/gestures.html
The text was updated successfully, but these errors were encountered: