Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Luflosi committed Mar 12, 2019
1 parent 0ec1c90 commit ec6cc55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kitty/mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,8 +630,8 @@ scroll_event(double UNUSED xoffset, double yoffset, int flags) {
screen->pending_scroll_pixels = pixels;
pixel_scroll(screen, (int)pixels);
} else {
screen->pending_scroll_pixels = 0.0;
pixel_scroll(screen, 0);
pixels = 0.0;
pixel_scroll(screen, (int)pixels);
if (screen->modes.mouse_tracking_mode) {
int sz = encode_mouse_event(w, upwards ? GLFW_MOUSE_BUTTON_4 : GLFW_MOUSE_BUTTON_5, PRESS, 0);
if (sz > 0) {
Expand All @@ -644,6 +644,7 @@ scroll_event(double UNUSED xoffset, double yoffset, int flags) {
fake_scroll(abs(s), upwards);
}
}
screen->pending_scroll_pixels = pixels;
}

static PyObject*
Expand Down

0 comments on commit ec6cc55

Please sign in to comment.