mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 21:38:40 +00:00
ui: if only one view scroll axis is specified on a box, always use scroll info to fill it, regardless of which axis that scroll took place on
This commit is contained in:
@@ -2523,10 +2523,18 @@ ui_signal_from_box(UI_Box *box)
|
|||||||
}
|
}
|
||||||
if(!(box->flags & UI_BoxFlag_ViewScrollX))
|
if(!(box->flags & UI_BoxFlag_ViewScrollX))
|
||||||
{
|
{
|
||||||
|
if(delta.y == 0)
|
||||||
|
{
|
||||||
|
delta.y = delta.x;
|
||||||
|
}
|
||||||
delta.x = 0;
|
delta.x = 0;
|
||||||
}
|
}
|
||||||
if(!(box->flags & UI_BoxFlag_ViewScrollY))
|
if(!(box->flags & UI_BoxFlag_ViewScrollY))
|
||||||
{
|
{
|
||||||
|
if(delta.x == 0)
|
||||||
|
{
|
||||||
|
delta.x = delta.y;
|
||||||
|
}
|
||||||
delta.y = 0;
|
delta.y = 0;
|
||||||
}
|
}
|
||||||
os_eat_event(ui_state->events, evt);
|
os_eat_event(ui_state->events, evt);
|
||||||
|
|||||||
Reference in New Issue
Block a user