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



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">
Updated on: 2020-03-04T10:21:10+05:30

473 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements