Use JavaScript to move the elements correctly.
- mousedown
- mouseup
- mousemove
For touch devices use the touch events.
- touchstart
- touchend
- touchmove
First check if you are in a touch device. So you can act accordingly and initiate what is needed.
function is_touch_device() {
return 'ontouchstart' in window;
}
But the touch will not work on all devices with this calculation, there comes from me separately still a section here purely soon.
Please file an issue if you think something could be improved. Please submit Pull Requests when ever possible.
NetBeans - NetBeans
VSC - Visual Studio Code
Samet Tarim - All works