mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-05-03 05:34:56 +09:00
Remove scrollable page from gsr page, fix crash when navigating back
This commit is contained in:
@@ -23,8 +23,10 @@ namespace gsr {
|
||||
const mgl::vec2f item_size = get_size().floor();
|
||||
if(event.type == mgl::Event::MouseButtonPressed && event.mouse_button.button == mgl::Mouse::Left) {
|
||||
const bool clicked_inside = mgl::FloatRect(position + offset, item_size).contains({ (float)event.mouse_button.x, (float)event.mouse_button.y });
|
||||
if(clicked_inside && on_click)
|
||||
if(clicked_inside && on_click) {
|
||||
on_click();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user