Fix touch screen interactions
This commit is contained in:
parent
b39555bb23
commit
0b8351b9af
1 changed files with 2 additions and 2 deletions
|
@ -193,9 +193,9 @@
|
||||||
canvas.addEventListener("touchend", function (event) {
|
canvas.addEventListener("touchend", function (event) {
|
||||||
g_is_touch = true;
|
g_is_touch = true;
|
||||||
g_mouse_down = false; // First release mouse to click...
|
g_mouse_down = false; // First release mouse to click...
|
||||||
update_gui()();
|
paint();
|
||||||
g_mouse_pos = null; // ...remove hover effect
|
g_mouse_pos = null; // ...remove hover effect
|
||||||
update_gui()();
|
invalidate();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue