diff --git a/examples/component/input.cpp b/examples/component/input.cpp index 61b3c0c..0e9aa1b 100644 --- a/examples/component/input.cpp +++ b/examples/component/input.cpp @@ -91,7 +91,7 @@ int main() { } else if (mouse.motion == Mouse::Released) { - selection.endx = mouse.x-1; + selection.endx = mouse.x; selection.endy = mouse.y; } else if (mouse.motion == Mouse::Moved)