gesture-password icon indicating copy to clipboard operation
gesture-password copied to clipboard

Touch events on non native touch devices

Open salmi3d opened this issue 5 years ago • 1 comments

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!

salmi3d avatar Jul 25 '20 17:07 salmi3d

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 avatar Nov 21 '23 01:11 xiaohuoni