From 2bbc17cfa46631df7488c7c4ca8c21b2104047df Mon Sep 17 00:00:00 2001 From: Tyler Brown Cifu Shuster Date: Mon, 2 Nov 2020 11:34:04 -0800 Subject: [PATCH] chat: fixes #3853 --- pkg/interface/src/views/components/VirtualScroller.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/interface/src/views/components/VirtualScroller.tsx b/pkg/interface/src/views/components/VirtualScroller.tsx index ead595f59..7a2d87b2a 100644 --- a/pkg/interface/src/views/components/VirtualScroller.tsx +++ b/pkg/interface/src/views/components/VirtualScroller.tsx @@ -245,7 +245,8 @@ export default class VirtualScroller extends PureComponent event.target.clientHeight && event.target.clientHeight > 0) // If we're scrolling something with a scrollbar + !event.target.isSameNode(element) + && (event.target.scrollHeight > event.target.clientHeight && event.target.clientHeight > 0) // If we're scrolling something with a scrollbar && ( (event.target.scrollTop > 0 && event.deltaY < 0) // Either we're not at the top and scrolling up || (event.target.scrollTop < event.target.scrollHeight - event.target.clientHeight && event.deltaY > 0) // Or we're not at the bottom and scrolling down