Commit a8769e4
committed
fix: decouple Component pressed state from hover
After Avalonia 11.3, PointerExited fires during implicit pointer
capture, so IsHover flips to false mid-drag. Tying IsXxxButtonPressed
to IsHover made the FunctionBar separator, parameter panel separator
and sliders stop following once the cursor left the control's bounds.
Make the press flags per-instance and drop the IsHover coupling so
press state reflects whether this component itself was pressed,
independent of where the cursor currently is.1 parent eda6ded commit a8769e4
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
235 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
0 commit comments