Skip to content

Commit 07f6760

Browse files
committed
fix: make onMouseWheel free
1 parent 46fcc0c commit 07f6760

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/datatip-manager.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -297,14 +297,6 @@ export class DataTipManager {
297297
)
298298
}
299299

300-
/**
301-
* handles the mouse wheel event to enable scrolling over long text
302-
* @param evt the mouse wheel event being triggered
303-
*/
304-
onMouseWheel(evt: WheelEvent) {
305-
evt.stopPropagation()
306-
}
307-
308300
/**
309301
* the central command event handler
310302
* @param evt command event
@@ -497,7 +489,7 @@ export class DataTipManager {
497489
}
498490

499491
// TODO move this code to atom-ide-base
500-
element.addEventListener("wheel", this.onMouseWheel, { passive: true })
492+
element.addEventListener("wheel", onMouseWheel, { passive: true })
501493

502494
return disposables
503495
}
@@ -511,3 +503,11 @@ export class DataTipManager {
511503
this.dataTipMarkerDisposables = null
512504
}
513505
}
506+
507+
/**
508+
* handles the mouse wheel event to enable scrolling over long text
509+
* @param evt the mouse wheel event being triggered
510+
*/
511+
function onMouseWheel(evt: WheelEvent) {
512+
evt.stopPropagation()
513+
}

0 commit comments

Comments
 (0)