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

Touch pan directive not wokring with q-input or input elements. #17713

Closed
Dtsiantaris opened this issue Dec 19, 2024 · 2 comments
Closed

Touch pan directive not wokring with q-input or input elements. #17713

Dtsiantaris opened this issue Dec 19, 2024 · 2 comments
Labels
area/directives bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues

Comments

@Dtsiantaris
Copy link
Contributor

What happened?

Applying the v-touch-pan on q-input or a simple input element(or a container that contains these elements) does not capture the swipe event.

What did you expect to happen?

The directive should capture the swipe events like any other element.

Reproduction URL

https://codepen.io/dtsiantaris/pen/xbKqypY?editors=1111

How to reproduce?

  1. Go to reproduction link.
  2. Trying swiping inside the grey are div.
  3. Notice that when your swipe gestures start from a q-input or input the event is not captured.

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Directives (quasar)

Platforms/Browsers

No response

Quasar info output

No response

Relevant log output

No response

Additional context

No response

@github-actions github-actions bot added area/directives bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite labels Dec 19, 2024
@Dtsiantaris
Copy link
Contributor Author

I found this in the source code for the directive:

image

Does this mean that touch pan is supposed to NOT work with inputs?

@rstoenescu
Copy link
Member

Hi. Yes. It is so by design. Otherwise it would interfere with the input elements in unpredictable ways. Especially on iOS, it would be hell on Earth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/directives bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

No branches or pull requests

2 participants