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

Migrate to pointer events #3363

Open
piroor opened this issue Jul 20, 2023 · 0 comments
Open

Migrate to pointer events #3363

piroor opened this issue Jul 20, 2023 · 0 comments

Comments

@piroor
Copy link
Owner

piroor commented Jul 20, 2023

setCapture/releaseCapture are now deprecated and we need to update codes to use new setPoitnerCapture/releasePointerCapture. But they have some differences.

  • pointerover/pointerout won't be dispatched and only pointermove will be dispatched while capturing. Moreover mouseover/mouseout also not dispatched while capturing by setPointerCapture.
    • TST listens mouseover/mouseout while capturing. We need to rewrite codes around those events with pointermove.
  • setPointerCapture/releasePointerCapture requires pointerId. It is 0 for a mouse.
    • dragstart and other drag events have no pointerId. We need to store the last available pointerId by the listener of pointerdown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant