fix(msg-list): Stop computing timestamps inside invisible tooltip

This commit is contained in:
Ben Gotow 2016-01-29 00:37:32 -08:00
parent d8cc0d52d5
commit 9f97cf2fd5

View file

@ -31,7 +31,7 @@ class Scrollbar extends React.Component
'scrolling': @state.scrolling 'scrolling': @state.scrolling
tooltip = [] tooltip = []
if @props.scrollTooltipComponent if @props.scrollTooltipComponent and @state.dragging
tooltip = <@props.scrollTooltipComponent viewportCenter={@state.viewportScrollTop + @state.viewportHeight / 2} totalHeight={@state.totalHeight} /> tooltip = <@props.scrollTooltipComponent viewportCenter={@state.viewportScrollTop + @state.viewportHeight / 2} totalHeight={@state.totalHeight} />
<div className={containerClasses} style={@_scrollbarWrapStyles()} onMouseEnter={@recomputeDimensions}> <div className={containerClasses} style={@_scrollbarWrapStyles()} onMouseEnter={@recomputeDimensions}>