Skip to content

Touch events on non native touch devices #32

Description

@salmi3d

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions