Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Change browser touch events to not be passive #91218

Merged
merged 1 commit into from
Feb 23, 2020
Merged

Change browser touch events to not be passive #91218

merged 1 commit into from
Feb 23, 2020

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
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Monaco-editor got ERROR on SurfaceBook2
3 participants