From 9f97cf2fd591a09d19b18879e4f61ba44d80727b Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Fri, 29 Jan 2016 00:37:32 -0800 Subject: [PATCH] fix(msg-list): Stop computing timestamps inside invisible tooltip --- src/components/scroll-region.cjsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/scroll-region.cjsx b/src/components/scroll-region.cjsx index 9ce4d6c9a..8347729e4 100644 --- a/src/components/scroll-region.cjsx +++ b/src/components/scroll-region.cjsx @@ -31,7 +31,7 @@ class Scrollbar extends React.Component 'scrolling': @state.scrolling tooltip = [] - if @props.scrollTooltipComponent + if @props.scrollTooltipComponent and @state.dragging tooltip = <@props.scrollTooltipComponent viewportCenter={@state.viewportScrollTop + @state.viewportHeight / 2} totalHeight={@state.totalHeight} />