Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stage mouse coordinates not updated when stage scale changed #179

Closed
greyf-TN opened this issue Sep 19, 2012 · 2 comments
Closed

stage mouse coordinates not updated when stage scale changed #179

greyf-TN opened this issue Sep 19, 2012 · 2 comments
Labels

Comments

@greyf-TN
Copy link

If you change the scaling on the stage and do stage.update(), the coordinates stage.mouseX, stage.mouseY don't appear to reflect their new values until there is a mousemove event.

@imarkahann
Copy link

👍 for this Issue ...

Issue on iPad and iPhone

In my case, this is the this.getStage().mouseX and this.getStage().mouseY seems to not change ...
the code :

//
p.startDrag = function(){
console.log(this, "startDrag");
this._dragPoint = this.globalToLocal(this.getStage().mouseX, this.getStage().mouseY);
this.onTick = this._dragTick;
}

p._dragTick = function() {

this.x = this.getStage().mouseX - this._dragPoint.x;
this.y = this.getStage().mouseY - this._dragPoint.y;

}

//
and in my animation, when I select a DIV ( stay my finger over ) Or click in the Edge Animate div ( sometimes )
stage.mouseX don't change its value:
http://box.imarkahann.com/js/
On "touchez moi, bougez moi" Button

But the "Drag Me" circle has no problem ( It listen the mouseMove evt.stageX/Y on a press Event )

Regards,

Germain

@gskinner gskinner added the bug label Sep 25, 2014
@gskinner
Copy link
Member

Closing in favour of #477.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants