Skip to content

Commit

Permalink
Fix off by one
Browse files Browse the repository at this point in the history
  • Loading branch information
aybe committed Jul 12, 2024
1 parent 55cc619 commit 88c0444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/gui_tk/gui_tk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ bool Window::mouseWheel(int x, int y, int wheel)
const auto xMax = xMin + win2->width - 1;
const auto yMax = yMin + win2->height - 1;

if(x >= xMin && x <= xMax && y >= yMin && y < yMax)
if(x >= xMin && x <= xMax && y >= yMin && y <= yMax)
{
return win2->mouseWheel(x, y, wheel);
}
Expand Down

0 comments on commit 88c0444

Please sign in to comment.