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 x = touch.clientX - rect.left;
|
||||||
let y = touch.clientY - rect.top;
|
let y = touch.clientY - rect.top;
|
||||||
|
|
||||||
this.hover({ offsetX:x, offsetY:y });
|
INTERFACE.hover({ offsetX:x, offsetY:y });
|
||||||
this.click({ button:0 });
|
INTERFACE.click({ button:0 });
|
||||||
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
},
|
},
|
||||||
@ -394,8 +394,8 @@ const INTERFACE = {
|
|||||||
let x = touch.clientX - rect.left;
|
let x = touch.clientX - rect.left;
|
||||||
let y = touch.clientY - rect.top;
|
let y = touch.clientY - rect.top;
|
||||||
|
|
||||||
this.hover({ offsetX:x, offsetY:y });
|
INTERFACE.hover({ offsetX:x, offsetY:y });
|
||||||
this.release({ button:0 });
|
INTERFACE.release({ button:0 });
|
||||||
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user