Added HTML5 Drag & Drop for Gecko/Firefox Mobile

Chrome does support dragstart and was fixed previously.
This is not active yet as i'm testing for touch issues.
This commit is contained in:
djmaze 2020-09-28 17:23:22 +02:00
parent 9b94265844
commit d735893cd6
3 changed files with 270 additions and 1 deletions

View file

@ -414,6 +414,7 @@ class SquireUI
input.action_cmd = cfg.cmd;
input.addEventListener('touchstart', () => touchTap = input);
input.addEventListener('touchmove', () => touchTap = null);
input.addEventListener('touchcancel', () => touchTap = null);
input.addEventListener('touchend', e => {
if (touchTap === input) {
e.preventDefault();