This commit is contained in:
Kovid Goyal 2024-05-27 10:53:41 +05:30
parent c57f65079f
commit 85280b0304
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -977,7 +977,7 @@ scroll_event(double xoffset, double yoffset, int flags, int modifiers) {
int sz = encode_mouse_scroll(w, s > 0 ? 6 : 7, modifiers);
#else
int sz = encode_mouse_scroll(w, s < 0 ? 6 : 7, modifiers);
#endfi
#endif
if (sz > 0) {
mouse_event_buf[sz] = 0;
for (s = abs(s); s > 0; s--) {