ducksboard / gridster.js

gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns
http://gridster.net/
MIT License
6.03k stars 1.2k forks source link

Drag not working on Microsoft Surface with touch #517

Closed mportuga closed 5 years ago

mportuga commented 9 years ago

While testing your demo on devices, I realized that I can't rearrange tiles on the Microsoft Surface with touch. It works fine on other touch devices (LG G2, iPad), and actually even works fine on the Surface with a mouse plugged in. But with the touch screen interface, it seems like the Surface is not retaining the fact that a touch and hold is being done to rearrange.

CurlyTailCode commented 9 years ago

In your css, add 'touch-action: none' to the ul where gridster is. That fixes it for 8.1 devices (untested on 8.0). See https://jsfiddle.net/mgsrss0u/1/