Reordering items in mobilesafari

After searching, I still don’t know how best to reorder a set of items in a mobile safari. I am currently using the jQuery collation function on the desktop version of my web application, applied to a rowset of a table, with an ajax callback to update the positioning position.

What would be the best way to do this on mobile safari via jquery or plain javascript? The table is longer than the screen, so regular scrolling should also be present.

Other approaches that you can use and not use drag and drop are also welcome. Thanks.

+4
source share
1 answer

In terms of the interface for Mobile Safari, instead of dragging and dropping, you can present the user with a list of items with up and down arrows next to each item. Depending on which arrow the user clicks, he moves the item up or down.

There are jQuery plugins that handle touch drag and drop versions: see demo

+2
source

Source: https://habr.com/ru/post/1310094/


All Articles