Skip to content

Commit 09caf1e

Browse files
nk-codingspoenemann
authored andcommitted
fix naming error in TouchTool
Signed-off-by: Niklas Krieger <niklask.coding@gmail.com>
1 parent 2e6fc89 commit 09caf1e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/sprotty/src/base/views/touch-tool.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ export class TouchTool implements IVNodePostprocessor {
3131

3232
constructor(@multiInject(TYPES.ITouchListener) @optional() protected touchListeners: ITouchListener[] = []) { }
3333

34-
register(mouseListener: ITouchListener) {
35-
this.touchListeners.push(mouseListener);
34+
register(touchListener: ITouchListener) {
35+
this.touchListeners.push(touchListener);
3636
}
3737

38-
deregister(mouseListener: ITouchListener) {
39-
const index = this.touchListeners.indexOf(mouseListener);
38+
deregister(touchListener: ITouchListener) {
39+
const index = this.touchListeners.indexOf(touchListener);
4040
if (index >= 0)
4141
this.touchListeners.splice(index, 1);
4242
}

0 commit comments

Comments
 (0)