Fix function call usage.
This commit is contained in:
parent
9baf3600f9
commit
a306c8787b
@ -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();
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user