-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
drag bad working after select a child #422
Comments
What do you mean? How is it annoying? |
google drive video |
Did you notice the problem? |
(I think) you need to call |
I tested this, but it didn't work |
If you're handling the event, then the viewport shouldn't get the pointerdown, which triggers the drag. You'll have to debug the events to see what's going on. pointermove on viewport will not trigger unless it also receives the pointerdown event. |
I want to move on the boxes and click on them as well. |
@davidfig The drag doesn't seem to cancel immediately, when you're dragging fast enough or slowly it seems to take a while before it cancels. Also when the drag remains within a limited amount of objects it doesn't cancel either, only reliably when it's more than 3ish. Interactive on (at no point do I cause a pointerup event when the drag cancels): NB: We're on this branch: https://github.com/cuire/pixi-viewport/tree/v5 but since the issue seems very similar I still though to comment |
I'm running into similar problems on the v5 branch, where if I drag a sprite too quickly it will stop following the cursor. I switched from |
This is one of the biggest problems with pixi-viewport! |
I check the source code and find out it is due to the incorrect pointerout event handler pop from the child element. A pr may come later. |
Yes, this is caused by pointerout calling cancel. I'll pull together a PR. |
add support for global point move
When I drag on an empty stage, it moves fine.
But when I do this on my children, it gets annoying.
The text was updated successfully, but these errors were encountered: