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

@@ -106,7 +106,7 @@ namespace gsr {
mgl_window_get_scissor(window.internal_window(), &prev_scissor);
const mgl::vec2f inner_size = get_inner_size();
mgl_scissor new_scissor = {
const mgl_scissor new_scissor = {
mgl_vec2i{(int)position.x, (int)position.y},
mgl_vec2i{(int)inner_size.x, (int)inner_size.y}
};