Fix mouse events received for scrollablepage child widgets when mouse is outside scrollablepage area

This commit is contained in:
dec05eba
2024-12-14 12:12:00 +01:00
parent 3bd4572631
commit 846d3c4e81
5 changed files with 18 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ namespace gsr {
mgl_scissor prev_scissor;
mgl_window_get_scissor(window.internal_window(), &prev_scissor);
mgl_scissor new_scissor = {
const mgl_scissor new_scissor = {
mgl_vec2i{(int)draw_pos.x, (int)draw_pos.y},
mgl_vec2i{(int)size.x, (int)size.y}
};