简体   繁体   中英

Is it possible to detect tap and drag on mobile devices?

As the title states, is there a way to detect if a mobile user is doing a tap and drag with javascript / jquery? Running into a user experience issue where ripple effects I have set on elements is activate while tap & dragging / browsing content on mobile devices.

I would recommend using jQuery touch punch for that.

You have great documentation and lots of events you can hook into for all sorts of tasks.

You can do things like Drag/Drop, Resize and more..

Have a look at JQuery Mobile . It has tap and swipe events.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM