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

Unreliable mouse interaction with rope mesh #2717

Closed
aatishb opened this issue Jul 13, 2016 · 4 comments
Closed

Unreliable mouse interaction with rope mesh #2717

aatishb opened this issue Jul 13, 2016 · 4 comments

Comments

@aatishb
Copy link

aatishb commented Jul 13, 2016

Hi, I'm trying to modify the 'strip' pixi.js example that demonstrates the rope mesh. I tried adding interactivity to the rope so that when I click it the size changes.

https://codepen.io/aatish/pen/yJPWBx

However, the click behavior seems unreliable for me. It works in some places and not in others, and I'm having trouble understanding where in the image I should be clicking for the interaction to occur. Ideally I would like the interaction behavior to happen whenever I click within the boundaries of the snake.

Thanks,
Aatish

@ivanpopelyshev
Copy link
Collaborator

Actually, thats not a bug. PIXI cant detect what is the size of your canvas, it must be exactly 1:1 with CSS pixel.

@ivanpopelyshev
Copy link
Collaborator

ivanpopelyshev commented Jul 14, 2016

https://dl.dropboxusercontent.com/u/46636530/pixijs/pixi.js - that's V4 with my PR, it works.

And I dont think PRs to "master" branch (pixi-v3) can be accepted anymore, so sorry, but you have to move to v4 :)

@aatishb
Copy link
Author

aatishb commented Jul 14, 2016

It works perfectly! Thank you!

@aatishb aatishb closed this as completed Jul 14, 2016
@lock
Copy link

lock bot commented Feb 25, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Feb 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants