zoninator icon indicating copy to clipboard operation
zoninator copied to clipboard

Drag and Drop on Mobile Issue

Open gracejiyoung opened this issue 10 years ago • 4 comments

It looks like the drag-and-drop is not working on mobile devices. If you touch one of the stories in the zones to change the rank, it will scroll all the way to the bottom making it impossible to move the stories up or around. This was reproduced on iPhone6/iPhone6+ in Safari/Chrome. However, this does work properly on iPad.

gracejiyoung avatar Jan 04 '16 21:01 gracejiyoung

I think we need to patch in mobile support for jQuery UI or switch to a different drag-and-drop library.

mjangda avatar Jan 04 '16 21:01 mjangda

@gracejiyoung what version of WordPress was this on? I'm assuming 4.4? I feel like this was working before so it could be caused by the latest version as some styles definitely broke (which I fixed) when I upgraded.

bcampeau avatar Jan 04 '16 23:01 bcampeau

@brettshumaker Can you take a look?

sboisvert avatar Apr 30 '18 16:04 sboisvert

@sboisvert I believe I've fixed this here: bfe91dfcb35f653cf63da863784790ee2a8506b5

Found a closed issue on the touch punch github (https://github.com/furf/jquery-ui-touch-punch/issues/288) that referenced a similar issue. It adds a helper function to the sortable init and correctly positions the cloned sortable element.

brettshumaker avatar May 01 '18 04:05 brettshumaker