fix: use mousemove instead of click

This commit is contained in:
ShiKhu 2021-07-08 12:00:22 +03:00
parent a7ae9ddb2b
commit 6cab849cfb

View file

@ -280,7 +280,7 @@ export default class AssistManager {
update({ calling: CallingState.True });
onStream(stream);
// @ts-ignore ??
this.md.overlay.addEventListener("click", this.onMouseMove)
this.md.overlay.addEventListener("mousemove", this.onMouseMove)
});
this.onCallEnd = () => {
@ -290,7 +290,7 @@ export default class AssistManager {
onClose();
// @ts-ignore ??
this.md.overlay.removeEventListener("click", this.onMouseMove);
this.md.overlay.removeEventListener("mousemove", this.onMouseMove);
update({ calling: CallingState.False });
this.onCallEnd = null;
}