This commit is contained in:
Joao Moreno
2017-06-28 15:37:02 +02:00
parent 5582a20565
commit fee4d547d1
3 changed files with 3 additions and 2 deletions

View File

@@ -32,7 +32,8 @@ const MouseEventTypes = [
'mouseover',
'mousemove',
'mouseout',
'contextmenu'
'contextmenu',
'touchstart'
];
export interface IListViewOptions {

View File

@@ -348,6 +348,7 @@ class MouseController<T> implements IDisposable {
this.disposables.push(view.addListener('mousedown', e => this.onMouseDown(e)));
this.disposables.push(view.addListener('click', e => this.onPointer(e)));
this.disposables.push(view.addListener('dblclick', e => this.onDoubleClick(e)));
this.disposables.push(view.addListener('touchstart', e => this.onMouseDown(e)));
this.disposables.push(view.addListener(TouchEventType.Tap, e => this.onPointer(e)));
}