kadv

Mouse Pointer Snapping to Anchor Point Behaviour

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.