Skip to main content
Inspiring
July 27, 2020
Question

Mouse not centered

  • July 27, 2020
  • 1 reply
  • 183 views
Hello,

Below is my code to move a clip called myCLip
this.monClip.addEventListener ("pressmove", fct.bind (this));
function fct (evt) {
var p = this.globalToLocal (evt.stageX, evt.stageY);
this.monClip.x = p.x;
this.monClip.y = p.y;
}

How can I prevent the mouse cursor from being positioned at the center of the myClip object?
Thank you for your reply.
This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
July 28, 2020

if you're asking how to set your cursor to none, use:

 

canvas.style.cursor = "none";