From 846d3c4e813ecd981f4834ca5aca14d98f4e9fdf Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 14 Dec 2024 12:12:00 +0100 Subject: Fix mouse events received for scrollablepage child widgets when mouse is outside scrollablepage area --- src/gui/StaticPage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/StaticPage.cpp') diff --git a/src/gui/StaticPage.cpp b/src/gui/StaticPage.cpp index a89fc42..c014f38 100644 --- a/src/gui/StaticPage.cpp +++ b/src/gui/StaticPage.cpp @@ -39,7 +39,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} }; -- cgit v1.2.3