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

[Feature Request] Overwrite the touch/v-touch behavior of VCarousel component #4813

Closed
mtermoul opened this issue Aug 6, 2018 · 1 comment
Assignees
Labels
T: feature A new feature
Milestone

Comments

@mtermoul
Copy link

mtermoul commented Aug 6, 2018

Problem to solve

Currently the swipe left, right on mobile device for the VCarousel component will fire the next/previous slides. I want to be able to overwrite these actions or disable them completely. I tried the component directive change as:

v-touch="{
   left: () => doMyOwnSwipe(),
  right: () => doMyOwnSwipe()
        }"

However this did not cancel the original swipe behaviour

Proposed solution

Ideally I like the new v-touch left and right functions to stop propagating and only executes the function that I call. Or give me the option to stop propagation like we have for the click event with the use of `@click:prevent:stop="onClick"

@johnleider johnleider added this to the v1.3.0 milestone Sep 15, 2018
@johnleider johnleider added the T: feature A new feature label Sep 15, 2018
@johnleider
Copy link
Member

This coincides with the abstraction of v-item-group and v-slide (still WIP/name subject to change).

@johnleider johnleider self-assigned this Oct 9, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Oct 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T: feature A new feature
Projects
None yet
Development

No branches or pull requests

2 participants