Commit 6fd5cc1
committed
fix(elevation): drop the remembered hover when a new line is profiled
The flicker fix remembers the hovered sample index so a redraw can restore the
crosshair. A new profile is also a redraw, so loading a different line (e.g.
"Use selected", which does not go through _clearProfile) would paint a
crosshair and readout at the old index even though the pointer is on a button,
not the chart. Clear the hover when _profileLine installs a new line.1 parent f42e0ea commit 6fd5cc1
1 file changed
Lines changed: 4 additions & 0 deletions
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
408 | 412 | | |
409 | 413 | | |
410 | 414 | | |
| |||
0 commit comments