Disable image dragging when brushing in Firefox

This commit is contained in:
Winston Chang
2015-03-10 13:31:32 -05:00
parent aed31c0eba
commit eda057eb07

View File

@@ -1536,6 +1536,7 @@
if (brushId) {
// Make image non-draggable
$img.css('-webkit-user-drag', 'none');
$img.on("dragstart", function() { return false; }); // For Firefox
var brushHandler = createBrushHandler(brushId);
$img.on('mousedown', brushHandler.mousedown);