aboutsummaryrefslogtreecommitdiff
path: root/src/gui/StaticPage.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-12-14 12:12:00 +0100
committerdec05eba <dec05eba@protonmail.com>2024-12-14 12:12:00 +0100
commit846d3c4e813ecd981f4834ca5aca14d98f4e9fdf (patch)
treedfd0eeb12bfbb37a0099de14f63378df2dff97ff /src/gui/StaticPage.cpp
parent3bd4572631778aa04d0bd1acd5d3c03bb82b17fa (diff)
Fix mouse events received for scrollablepage child widgets when mouse is outside scrollablepage area
Diffstat (limited to 'src/gui/StaticPage.cpp')
-rw-r--r--src/gui/StaticPage.cpp2
1 files changed, 1 insertions, 1 deletions
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}
};