ionViewDidEnter(){
this.loadCanvas();
}
loadCanvas(){
canvas.on('mouse:down', function(e){
this.canvasMouseDown(e);
});
}
canvasMouseDown(e){
console.log(this.lock);
console.log(this.pausePanning);
if(!this.lock){
this.pausePanning = true;
}
}
That is code. Every time when I click I get error. Like below
I tried every combination and still have this same problem