Skip to content

Conversation

@DerThorsten
Copy link
Contributor

@DerThorsten DerThorsten commented Dec 10, 2025

Updated touch event listeners to use passive options and prevent default behavior on touch-events
Needs to be tried on readthedocs once its ready

Updated touch event listeners to use passive options and prevent default behavior on touchmove.
@github-actions
Copy link
Contributor

lite-badge 👈 Try it on ReadTheDocs with JupyterLite!

@DerThorsten
Copy link
Contributor Author

tested on my tablet, is working as expected!

@DerThorsten
Copy link
Contributor Author

We may want to do the same for the non-offscreen canvas

@DerThorsten DerThorsten marked this pull request as ready for review December 10, 2025 13:30
}
}
async function sendTouchEvent(event: TouchEvent): Promise<void> {

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you be able to make sure the non-offscreen canvas does that as well?

We may want to refactor a bit to share more logic on this. But maybe not as this PR.

Copy link
Contributor Author

@DerThorsten DerThorsten Dec 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jeah I can add that later today -- need to go afk for ~2h

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'm in no hurry

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Collaborator

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@martinRenou martinRenou merged commit ae7e206 into jupyter-widgets-contrib:master Dec 10, 2025
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants