fabricjs-viewport icon indicating copy to clipboard operation
fabricjs-viewport copied to clipboard

canvas.on() does not work

Open ppr-lu opened this issue 6 years ago • 0 comments

This does not work: var c = new fabric.CanvasWithViewport("zoomable_canvas"); c.on({ 'mouse:down' : function(){console.log("canvas mod.");}, 'mouse:up' : function(){console.log("canvas mod.");} });

But if i change c to: var c = new fabric.Canvas("zoomable_canvas"); it does.

EDIT: Only happens when c.isGrabMode === true. When it is false event handlers work properly.

ppr-lu avatar Apr 11 '19 08:04 ppr-lu