HTML5 Canvas layer disappears on mouse click in Fabric.js and Firefox stops responding when creating a canvas for the image?

HTMLWeb DevelopmentFront End Technology

If the HTML5 Canvas layer disappears on mouse click in Fabric.js and Firefox stops responding when creating a canvas to the image, then there is a way to drag and drop images from your computer to canvas using Fabric.

This can be done by making image draggable property to true by this way −

<img draggable = "true">
raja
Published on 11-Apr-2018 13:27:08
Advertisements