diff --git a/Userland/Services/WindowServer/EventLoop.cpp b/Userland/Services/WindowServer/EventLoop.cpp index 872e6df3d2..fc20cda1f2 100644 --- a/Userland/Services/WindowServer/EventLoop.cpp +++ b/Userland/Services/WindowServer/EventLoop.cpp @@ -94,12 +94,11 @@ void EventLoop::drain_mouse() if (packet.is_relative) { state.x += packet.x; state.y -= packet.y; - state.z += packet.z; } else { state.x = packet.x; state.y = packet.y; - state.z += packet.z; } + state.z += packet.z; if (packet.buttons != state.buttons) { state.buttons = packet.buttons;