mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-10 11:25:59 +03:00
fix(ui): use correct order when walking frames for mouse move events
This commit is contained in:
parent
97a6a8dd91
commit
d488a4007e
@ -253,8 +253,9 @@ int32_t CSimpleTop::OnMouseMove(const EVENT_DATA_MOUSE* pMouseData, void* param)
|
|||||||
for (int32_t strata = FRAME_STRATA_DIALOG; strata >= FRAME_STRATA_WORLD; strata--) {
|
for (int32_t strata = FRAME_STRATA_DIALOG; strata >= FRAME_STRATA_WORLD; strata--) {
|
||||||
auto priorities = &top->m_eventqueue[strata][SIMPLE_EVENT_MOUSE];
|
auto priorities = &top->m_eventqueue[strata][SIMPLE_EVENT_MOUSE];
|
||||||
|
|
||||||
for (int32_t i = priorities->Count() - 1; i >= 0; i--) {
|
for (int32_t i = 0; i < priorities->Count(); i++) {
|
||||||
auto frame = priorities->operator[](i)->frame;
|
auto priority = priorities->operator[](i);
|
||||||
|
auto frame = priority->frame;
|
||||||
|
|
||||||
if (frame->OnLayerTrackUpdate(mouseEvent)) {
|
if (frame->OnLayerTrackUpdate(mouseEvent)) {
|
||||||
nextFocus = frame;
|
nextFocus = frame;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user