提交 8c37fa80 编写于 作者: P Peng Lyu

Fix microsoft/monaco-editor#644. navigator.pointerEnabled no longer exists.

上级 4e3383f1
......@@ -228,7 +228,7 @@ export class PointerHandler implements IDisposable {
this.handler = new MsPointerHandler(context, viewController, viewHelper);
} else if ((<any>window).TouchEvent) {
this.handler = new TouchHandler(context, viewController, viewHelper);
} else if (window.navigator.pointerEnabled) {
} else if (window.navigator.pointerEnabled || (<any>window).PointerEvent) {
this.handler = new StandardPointerHandler(context, viewController, viewHelper);
} else {
this.handler = new MouseHandler(context, viewController, viewHelper);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册