diff --git a/www/js/interface.js b/www/js/interface.js index f56a8c5..38daefc 100644 --- a/www/js/interface.js +++ b/www/js/interface.js @@ -355,8 +355,8 @@ const INTERFACE = { let x = touch.clientX - rect.left; let y = touch.clientY - rect.top; - this.hover({ offsetX:x, offsetY:y }); - this.click({ button:0 }); + INTERFACE.hover({ offsetX:x, offsetY:y }); + INTERFACE.click({ button:0 }); event.preventDefault(); }, @@ -394,8 +394,8 @@ const INTERFACE = { let x = touch.clientX - rect.left; let y = touch.clientY - rect.top; - this.hover({ offsetX:x, offsetY:y }); - this.release({ button:0 }); + INTERFACE.hover({ offsetX:x, offsetY:y }); + INTERFACE.release({ button:0 }); event.preventDefault(); },