kadv Posted June 22, 2013 Share Posted June 22, 2013 Hello, When clicking on a sprite to drag the mouse pointer snaps to the sprite's anchor point. This is a bit jarring, especially for larger sprites, where the shift is very visible. Is there a good way either using pixi directly, or some code workaround to keep the mouse at its relative position as it moves, while maintaining the anchor? Thanks all. Quote Link to comment Share on other sites More sharing options...
xerver Posted June 22, 2013 Share Posted June 22, 2013 I'm pretty sure the Sprite jumps to the mouse position, not the other way around. Would you mind posting this an relevant code on the bug tracker: https://github.com/GoodBoyDigital/pixi.js/issues?state=open Quote Link to comment Share on other sites More sharing options...
kadv Posted June 22, 2013 Author Share Posted June 22, 2013 Hi rolnaaba, You are quite right, it is the sprite that jumps, my mistake. Do you still want an issue made? (I don't think the current behaviour is ideal) The dragging example in the pixi distribution illustrates the problem. I don't mind posting something smaller, but any further information you need on the report? Quote Link to comment Share on other sites More sharing options...
xerver Posted June 22, 2013 Share Posted June 22, 2013 I agree that the current behavior is bad, I'll see if I can work on it this weekend, please make an issue though or I will forget about it Thanks again! P.S. Make sure to include your sample code with this issue, it will help a lot! Quote Link to comment Share on other sites More sharing options...
kadv Posted June 23, 2013 Author Share Posted June 23, 2013 Neato, thanks for your help, rolnaaba. Issue at: https://github.com/GoodBoyDigital/pixi.js/issues/180 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.