File tree Expand file tree Collapse file tree
src/components/ApplicationTimeChart Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -189,10 +189,8 @@ function ApplicationTimeChart() {
189189 } , [ ] ) ;
190190
191191 const handleMouseLeave = useCallback ( ( ) => {
192- // Short delay prevents flicker when cursor passes between bar and label
193- hideTimerRef . current = setTimeout ( ( ) => {
194- setTooltip ( prev => ( { ...prev , visible : false } ) ) ;
195- } , 80 ) ;
192+ clearTimeout ( hideTimerRef . current ) ;
193+ setTooltip ( prev => ( { ...prev , visible : false } ) ) ;
196194 } , [ ] ) ;
197195
198196 // Tooltip position — keep inside viewport
@@ -269,7 +267,7 @@ function ApplicationTimeChart() {
269267 </ h2 >
270268
271269 { /* Chart */ }
272- < div className = { styles . chartArea } >
270+ < div className = { styles . chartArea } onMouseLeave = { handleMouseLeave } >
273271 { processedData . length > 0 ? (
274272 < >
275273 { /* Grid Lines */ }
You can’t perform that action at this time.
0 commit comments