1
這是工作在谷歌瀏覽器如何獲得fabric.js帆布鼠標cordinates上mozzila
var pointer = canvas.getPointer(event.e);
var posiX = pointer.x;
var posiY = pointer.y;
posiX=Math.round(posiX);
posiY=Math.round(posiY);
在mozzila我得到的代碼「類型錯誤:事件是不確定的」,它是在 指着變種pointer = canvas.getPointer(event.e);