From 495be3bacb331027f2ad3c420c02b9d7652cbae4 Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Thu, 10 Dec 2020 09:57:02 -0500 Subject: [PATCH] interface: uncomment virtualscroller scroll catch --- pkg/interface/src/views/components/VirtualScroller.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/interface/src/views/components/VirtualScroller.tsx b/pkg/interface/src/views/components/VirtualScroller.tsx index ca68422b4b..48ff8d12c5 100644 --- a/pkg/interface/src/views/components/VirtualScroller.tsx +++ b/pkg/interface/src/views/components/VirtualScroller.tsx @@ -164,7 +164,7 @@ export default class VirtualScroller extends Component { startgap -= this.heightOf(index); }); @@ -175,7 +175,7 @@ export default class VirtualScroller extends Component { + element.addEventListener('wheel', (event) => { event.preventDefault(); const normalized = normalizeWheel(event); element.scrollBy(0, normalized.pixelY * -1); return false; }, { passive: false }); - */ + window.addEventListener('keydown', this.invertedKeyHandler, { passive: false }); } this.resetScroll();