简体   繁体   中英

jquery-ui draggable interfering with touch scroll

It's my understanding that jQuery UI totally ignores touch events and people wanting to use touch events have had to use touch-punch to map touch events into mouse events. However, the newer versions of UI seem to be interfering with built in touch events such as scrolling even though they should be ignoring those events.

I have jQuery UI draggable elements that work fine. However, when using a touch device and attempting to scroll the window with that element below the touch point, the screen won't scroll. If jQuery UI is ignoring touch events, why is this happening?

I've found that older versions of UI don't have this issue. The version I'm using is 1.11.4 .

Just to re-iterate: I'm not trying to make the draggable elements draggable on a touch device. I just want it to ignore the touch events and allow regular scrolling to happen.

似乎该库忽略了动作,但是CSS设置了touch-action: none正是导致我看到的功能的原因。

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