I just noticed that drag-and-drop of dashboard blocks does not work on a touchscreen laptop when using the mouse (you therefore have to switch to touch input). I use an external monitor with an external keyboard/mouse, so whenever I need to reorganize my blocks I switch to touch. It’s not very inconvenient in itself, but I’m still creating a topic to inform touchscreen laptop users of the behavior and it might not be very difficult to fix (or there may be other solutions)
Indeed, the case of « hybrid » devices is quite complex.
Drag and drop in browsers is unfortunately not a standard API between touch and mouse; you have to code each case separately.
On my side I use a specific library to handle one case, and another to handle the other, and for now it’s either one or the other — I haven’t implemented a hybrid behavior to switch between them dynamically.
However, I’m surprised that your browsers don’t expose that they are touch-enabled.
Out of curiosity, if you open the browser console (right-click on a page -\u003e inspect element), and run:
Ok, so @qleg and @guim31 the behavior you have is the behavior coded for now:
@qleg since your browser exposes that it is touch-enabled, the Gladys front-end chooses to provide the drag-and-drop in touch mode (and not on click; it’s one or the other currently)
@guim31 Your browser exposes that it is not touch-enabled, so the Gladys front-end chooses to only provide the mouse interface
In @qleg’s case, development is possible: we’d need to code a mechanism to allow both. We’ll see, this could be simple or it could be a huge undertaking. I can look into it in the coming weeks, but I promise nothing. It’s an edge case that’s really complex, especially since I wouldn’t be able to test it — it would be blind ^^
In @guim31’s case, nothing is possible. If your browser itself doesn’t know that it’s touch-enabled, there’s nothing I can do. You need to investigate; maybe your browsers don’t support touch input on Ubuntu…
@pierre-gilles I must admit I joined this thread because, since I have a computer with a touchscreen, I thought it might be useful to get some feedback. But in my use I don’t see the point of using my touchscreen for this kind of drag-and-drop, which is much easier and faster with the mouse