Commit 99f6a16
committed
FIX: OnMouseUpAsButton dropped in Play mode on Game view focus change
Focus events (engine >= 6000.5.0a8) cause an InputUpdateType.Editor update to run in
Play mode when the Game view focus changes. FinalizeUpdate drove the legacy
SendMouseEvents pipeline from that editor update, where Pointer.current reflects the
editor state buffer (position (0,0), not pressed). That produced a spurious mouse-up
that cleared the press target, so OnMouseUpAsButton/OnMouseUp were skipped on the real
release. Guard the legacy mouse send so it does not run for InputUpdateType.Editor
updates (consistent with existing guards in this file). Focus-event delivery is
unaffected. Covered by CoreTests.MouseEvents_CanReceiveOnMouseUpAsButton.1 parent 6610131 commit 99f6a16
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4069 | 4069 | | |
4070 | 4070 | | |
4071 | 4071 | | |
4072 | | - | |
| 4072 | + | |
| 4073 | + | |
| 4074 | + | |
4073 | 4075 | | |
4074 | 4076 | | |
4075 | 4077 | | |
| |||
0 commit comments