Skip to content

Change browser touch events to not be passive#91218

Merged
alexdima merged 1 commit intomicrosoft:masterfrom
nrayburn-tech:touch
Feb 23, 2020
Merged

Change browser touch events to not be passive#91218
alexdima merged 1 commit intomicrosoft:masterfrom
nrayburn-tech:touch

Conversation

@nrayburn-tech
Copy link
Contributor

This adds {prevent: false} to touchstart and touchmove events that may call e.preventDefault(). Otherwise, Chrome will throw an error.

This has to be tested with a touchscreen and I am unable to test it.

Open a monaco-editor.
Scroll through the editor as well as the minimap.
Errors should not be thrown, and scrolling should still work properly.

This PR fixes #1382.

@alexdima alexdima self-assigned this Feb 23, 2020
@alexdima
Copy link
Member

Thank you!

@alexdima alexdima added this to the February 2020 milestone Feb 23, 2020
@alexdima alexdima merged commit 1706e43 into microsoft:master Feb 23, 2020
@nrayburn-tech nrayburn-tech deleted the touch branch February 23, 2020 22:35
@github-actions github-actions bot locked and limited conversation to collaborators Apr 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Monaco-editor got ERROR on SurfaceBook2

3 participants