[Vuejs]-Vue: this.findxy is not a function at HTMLCanvasElement.eval

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);

Leave a comment