mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-11 14:45:31 +03:00
Fix #7481
This commit is contained in:
parent
57b6cec900
commit
48070ff38e
@ -55,7 +55,7 @@ Detailed list of changes
|
||||
|
||||
- Wayland: Fix a regression in 0.34 that caused the tab bar to not render in second and subsequent OS Windows under Hyprland (:iss:`7413`)
|
||||
|
||||
- macOS: Fix a regression in the previous release that caused horizontal scrolling via touchpad in fullscreen applications to be reversed (:iss:`7475`)
|
||||
- Fix a regression in the previous release that caused horizontal scrolling via touchpad in fullscreen applications to be reversed on non-Wayland platforms (:iss:`7475`, :iss:`7481`)
|
||||
|
||||
|
||||
0.35.0 [2024-05-25]
|
||||
|
2
glfw/wl_init.c
vendored
2
glfw/wl_init.c
vendored
@ -224,7 +224,7 @@ pointer_handle_frame(void *data UNUSED, struct wl_pointer *pointer UNUSED) {
|
||||
if (x != 0.0f || y != 0.0f) {
|
||||
float scale = (float)_glfwWaylandWindowScale(window);
|
||||
y *= scale; x *= scale;
|
||||
_glfwInputScroll(window, x, y, highres, _glfw.wl.xkb.states.modifiers);
|
||||
_glfwInputScroll(window, -x, y, highres, _glfw.wl.xkb.states.modifiers);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -973,11 +973,7 @@ scroll_event(double xoffset, double yoffset, int flags, int modifiers) {
|
||||
s = scale_scroll(screen->modes.mouse_tracking_mode, xoffset, is_high_resolution, &screen->pending_scroll_pixels_x, global_state.callback_os_window->fonts_data->cell_width);
|
||||
if (s) {
|
||||
if (screen->modes.mouse_tracking_mode) {
|
||||
#ifdef __APPLE__
|
||||
int sz = encode_mouse_scroll(w, s > 0 ? 6 : 7, modifiers);
|
||||
#else
|
||||
int sz = encode_mouse_scroll(w, s < 0 ? 6 : 7, modifiers);
|
||||
#endif
|
||||
if (sz > 0) {
|
||||
mouse_event_buf[sz] = 0;
|
||||
for (s = abs(s); s > 0; s--) {
|
||||
|
Loading…
Reference in New Issue
Block a user