From a306c8787b2392c5f39cec61b535fcb01823413d Mon Sep 17 00:00:00 2001 From: yukirij Date: Tue, 17 Dec 2024 18:49:50 -0800 Subject: [PATCH] Fix function call usage. --- www/js/interface.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(); },