Browse Source

Add onDrag callback to ComponentDrag command

pull/2062/head
Artur Arseniev 7 years ago
parent
commit
a09aaf43ed
  1. 4
      src/commands/view/ComponentDrag.js

4
src/commands/view/ComponentDrag.js

@ -323,12 +323,14 @@ module.exports = {
}
},
onDrag() {
onDrag(...args) {
const { guidesTarget, opts } = this;
const { onDrag } = opts;
this.updateGuides(guidesTarget);
opts.debug && guidesTarget.forEach(item => this.renderGuide(item));
opts.guidesInfo &&
this.renderGuideInfo(guidesTarget.filter(item => item.active));
onDrag && onDrag(...args);
},
onEnd(...args) {

Loading…
Cancel
Save