Commit 852dff91 authored by Hunter Schuler's avatar Hunter Schuler

Resolved drag inside plot bug

parent 41faca69
Pipeline #81672 failed with stages
in 1 minute and 11 seconds
......@@ -29,6 +29,7 @@
:w="item.w"
:h="item.h"
:i="item.i"
:drag-ignore-from="item.dragIgnoreFrom"
@resize="resizeEvent"
@resized="resizedEvent"
@move="moveEvent"
......
......@@ -205,6 +205,7 @@
this.layout[gridID]['h'] = plot.grid['h'];
this.layout[gridID]['w'] = plot.grid['w'];
this.layout[gridID]['show'] = true;
this.layout[gridID]['dragIgnoreFrom'] = '.js-plotly-plot';
plot.okay_to_draw = true;
plot.populate();
},
......@@ -223,6 +224,7 @@
grid.type = plot.type;
grid.i = idx;
grid.divname = 'plot'+idx;
grid.dragIgnoreFrom = '.js-plotly-plot';
if (plot.visible) {
if (!('y' in grid)) {
grid.y = this.ySpace;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment