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 events on non native touch devices #32

Open
salmi3d opened this issue Jul 25, 2020 · 1 comment
Open

Touch events on non native touch devices #32

salmi3d opened this issue Jul 25, 2020 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@salmi3d
Copy link
Contributor

salmi3d commented Jul 25, 2020

Hi,
I have desktop monitor with additional touch capabilities. I use your plugin gesture-password-vue to develop touch UI.
This condition is false in my environment:
if ('ontouchstart' in document.documentElement)
and plugin doesn't work correctly...

But my OS API can handle touch events... Can you please remove this condition and always fire up all types of events: touch and mouse. Something like:
// touch
this.el.addEventListener('touchstart', touchstartFun, false);
this.el.addEventListener('touchmove', touchmoveFun, false);
this.el.addEventListener('touchend', touchendFun, false);
// mouse
this.el.addEventListener('mousedown', touchstartFun, false);
this.el.addEventListener('mousemove', touchmoveFun, false);
this.el.addEventListener('mouseup', touchendFun, false);

Thank you in advance!

@xiaohuoni
Copy link
Member

I'm sorry, I only saw this information now because Github has too much information and my attention to this warehouse is very low. I'm not sure if you're still using this warehouse.

@xiaohuoni xiaohuoni added the help wanted Extra attention is needed label Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants