2015R4 Web Drag & Drop on Touch Devices

2015R4 brought us workable Drag & Drop and the result is awesome. I am playing around with an idea. Here’s a sample:

http://jakobssystems.net/webapps/alpha/panelbuilder.cgi

Sorry for pushing the limits further away but today I’ve found out (thank you Oliver for your hint) that Web Drag & Drop does not work on any touch devices (tablets or smartphones). So I am asking myself how to address these devices. Is it even possible?

HTML5 drag and drop which Xojo is based upon indeed does not support touch devices. So you will have to use another approach, maybe based on some of the principles discussed last year in https://forum.xojo.com/947-we-drag-and-drop-files-into-webpage/0

It seems possible in JavaScript to show a rectangle or even a picture and move it in mousemove (client side) while the mouse (finger) is down. Then it is a matter of communicating with the web app through a WebSDK control to know when the mouseUp happens to deal with the drop, and hide the rectangle.

The same kind of thing can be done in Xojo as well, but I am afraid it will not be as smooth, as going back and forth between client and server takes time.

[quote=236627:@Tomas Jakobs]2015R4 brought us workable Drag & Drop and the result is awesome. I am playing around with an idea. Here’s a sample:

http://jakobssystems.net/webapps/alpha/panelbuilder.cgi

Sorry for pushing the limits further away but today I’ve found out (thank you Oliver for your hint) that Web Drag & Drop does not work on any touch devices (tablets or smartphones). So I am asking myself how to address these devices. Is it even possible?[/quote]
As I recall, we did have this working in early versions of the technology, so it should be possible. It’s something we need to review and see why the ability was lost somewhere along the way.

It would be great if someone would file a feature request so we don’t forget about it.