We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e6fc89 commit 09caf1eCopy full SHA for 09caf1e
packages/sprotty/src/base/views/touch-tool.ts
@@ -31,12 +31,12 @@ export class TouchTool implements IVNodePostprocessor {
31
32
constructor(@multiInject(TYPES.ITouchListener) @optional() protected touchListeners: ITouchListener[] = []) { }
33
34
- register(mouseListener: ITouchListener) {
35
- this.touchListeners.push(mouseListener);
+ register(touchListener: ITouchListener) {
+ this.touchListeners.push(touchListener);
36
}
37
38
- deregister(mouseListener: ITouchListener) {
39
- const index = this.touchListeners.indexOf(mouseListener);
+ deregister(touchListener: ITouchListener) {
+ const index = this.touchListeners.indexOf(touchListener);
40
if (index >= 0)
41
this.touchListeners.splice(index, 1);
42
0 commit comments