Drag and drop smoothly Animate CC Canvas
I am using Animate CC, Canvas, I'm trying to drag my background scene along the X axis, the code I have so far is
this.scene.addEventListener("pressmove", dragMe.bind(this)); function dragMe (evt) { this.addChild(evt.currentTarget); var p = this.globalToLocal(evt.stageX, evt.stageY); evt.currentTarget.x = p.x; }However each time I drag the background it snaps the image to the mouse (depending on where the axis - rotation point - is placed in Animate CC). This makes for an unsmooth drag, I would like something more like a touch screen interaction where I can just keep dragging/swiping it along.
I can't seem to find a solution anywhere for this.
Thanks in advance.
