Jump to content

Mouse Pointer Snapping to Anchor Point Behaviour


kadv
 Share

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.

Link to comment
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?

Link to comment
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...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...