function tooltipOut()

in src/js/modules/choropleth.js [1323:1336]


        function tooltipOut(d) {
            const event = d3.event || window.event;
            // Add a small delay to prevent flickering when moving between features
            setTimeout(() => {
                // Check if we're still outside both layers
                var elementAtPoint = document.elementFromPoint(event.clientX, event.clientY);
                if (!elementAtPoint?.classList.contains('mapArea') && 
                    !elementAtPoint?.classList.contains('overlay')) {
                    d3.select(".tooltip").style("visibility", "hidden");
                    // Remove highlight from all paths when truly leaving the map area
                    d3.selectAll('.mapArea').classed('highlighted', false);
                }
            }, 100);
        }