File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -529,22 +529,19 @@ export default class Tooltip {
529
529
syncedCharts = this . ctx . getSyncedCharts ( )
530
530
}
531
531
532
- let isStickyTooltip =
532
+ const isStickyTooltip =
533
533
w . globals . xyCharts ||
534
534
( w . config . chart . type === 'bar' &&
535
535
! w . globals . isBarHorizontal &&
536
536
this . tooltipUtil . hasBars ( ) &&
537
537
this . tConfig . shared ) ||
538
538
( w . globals . comboCharts && this . tooltipUtil . hasBars ( ) )
539
539
540
- let isChartContextTarget = w . globals . dom . baseEl . contains ( e . relatedTarget )
541
- let isInteractionEnd = ( e . type === 'mouseout' || e . type === 'touchend' )
540
+ const isInteractionInProcess = ( e . type === 'mousemove' || e . type === 'touchmove' || e . type === 'mouseup' )
541
+ const isInteractionEnd = ( e . type === 'mouseout' || e . type === 'touchend' )
542
+ const isChartContextTarget = w . globals . dom . baseEl . contains ( e . relatedTarget )
542
543
543
- if (
544
- e . type === 'mousemove' ||
545
- e . type === 'touchmove' ||
546
- e . type === 'mouseup'
547
- ) {
544
+ if ( isInteractionInProcess ) {
548
545
// there is no series to hover over
549
546
if (
550
547
w . globals . collapsedSeries . length +
You can’t perform that action at this time.
0 commit comments