how to drag graphics

Hi, I have a problem. I want to drag a rect which is created by graphics.
this.graphics.setInteractive({ draggable: true });
** this.graphics.on(‘drag’, function () {**
** console.log(‘Drag’);**
** });**

It’s not working. Please help me solve the problem.

See description and example in setInteractive().

1 Like