Skip to content

Commit dc1c991

Browse files
committed
fix: fix scrolling on the datatip
fixes #101
1 parent 5af5c4d commit dc1c991

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/datatip-manager.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,12 @@ export class DataTipManager {
393393
}
394394

395395
const dataTipView = new ViewContainer({ snippet, markdown, className: `datatip-element ${this.glowClass}` })
396+
397+
// TODO move this code to atom-ide-base
398+
dataTipView.element.addEventListener('mousewheel', (e: WheelEvent) => {
399+
e.stopPropagation()
400+
})
401+
396402
this.dataTipMarkerDisposables = this.mountDataTipWithMarker(editor, datatip.range, position, dataTipView)
397403
}
398404
}

0 commit comments

Comments
 (0)