mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-29 03:00:45 -04:00
Disable image dragging when brushing in Firefox
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user