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/GsrPage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/GsrPage.cpp') diff --git a/src/gui/GsrPage.cpp b/src/gui/GsrPage.cpp index e6ee5fc..68ee292 100644 --- a/src/gui/GsrPage.cpp +++ b/src/gui/GsrPage.cpp @@ -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} }; -- cgit v1.2.3