0👍
✅
Just make your function as Arrow Function, because this
inside the function is scoped to that function only.
Here is the updated code:
this.canvas.addEventListener('mousemove', (e) => {
this.findxy('move', e); *line throwing error*
}, false);
Source:stackexchange.com