Listen for dragging event

i already try element.mouseup and element.mousedown
but it’s not working when user dragging an object
for example drag and drop task from toolbar or drag and drop existing task in canvas
is there another solution ?

Hi @Hauw_Ric,

you can have a look on the Dragging module to check what events are available.

eventBus.on('drag.start', function(event) {
  console.log('dragging start');
});

eventBus.on('drag.init', function(event) {
  console.log('dragging init');
});

eventBus.on('drag.end', function(event) {
  console.log('dragging end');
});
1 Like