Compare commits

...
Author SHA1 Message Date
iamdavidhill 90978b4874 fix(stats): prevent cost row jump on navigation
Use pointer movement rather than pointer entry to select cost rows so smooth scrolling under a stationary cursor does not move the active tooltip.
2026-09-12 13:17:12 +00:00
+2 -2
View File
@@ -1408,7 +1408,7 @@ function TokenCostChart(props: {
data-component="token-row"
data-active={props.activeIndex === index() ? "true" : undefined}
onClick={() => props.onActiveIndexChange(index())}
onPointerEnter={() => props.onActiveIndexChange(index())}
onPointerMove={() => props.onActiveIndexChange(index())}
>
<strong>{formatDollars(item.total)}</strong>
<span>{item.model}</span>
@@ -1607,7 +1607,7 @@ function SessionCostChart(props: {
data-variant="session"
data-active={props.activeIndex === index() ? "true" : undefined}
onClick={() => props.onActiveIndexChange(index())}
onPointerEnter={() => props.onActiveIndexChange(index())}
onPointerMove={() => props.onActiveIndexChange(index())}
>
<strong>{formatSessionCost(item.cost)}</strong>
<span>{item.model}</span>