Browse Source

Check if the event exists in move command. Fixes #710

pull/983/head
Artur Arseniev 8 years ago
parent
commit
3ea720c937
  1. 2
      src/commands/index.js

2
src/commands/index.js

@ -147,7 +147,7 @@ module.exports = () => {
const event = opts && opts.event;
const sel = ed.getSelected();
const toolbarStyle = ed.Canvas.getToolbarEl().style;
const nativeDrag = event.type == 'dragstart';
const nativeDrag = event && event.type == 'dragstart';
const hideTlb = () => {
toolbarStyle.display = 'none';

Loading…
Cancel
Save