hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.37k stars 897 forks source link

Scroll is misbehaving. For 1 scroll down, it counts as 3 or 5 times. #6707

Closed IgnIVertiKalCaD closed 4 months ago

IgnIVertiKalCaD commented 4 months ago

Regression?

Yes

System Info and Version

System/Version info ```sh Hyprland, built from branch main at commit 918d8340afd652b011b937d29d5eea0be08467f5 (flake.lock: update). Date: 2024-06-25 Tag: v0.41.2, commits: 918d8340afd652b011b937d29d5eea0be08467f5 flags: (if any) System Information: System name: Linux Node name: desktop Release: 6.6.35 Version: #1-NixOS SMP PREEMPT_DYNAMIC Fri Jun 21 12:38:50 UTC 2024 GPU information: 09:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT] [1002:73df] (rev c5) (prog-if 00 [VGA controller]) os-release: ANSI_COLOR="1;34" BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues" BUILD_ID="24.11pre644361.1e3deb3d8a86" DOCUMENTATION_URL="https://nixos.org/learn.html" HOME_URL="https://nixos.org/" ID=nixos IMAGE_ID="" IMAGE_VERSION="" LOGO="nix-snowflake" NAME=NixOS PRETTY_NAME="NixOS 24.11 (Vicuna)" SUPPORT_URL="https://nixos.org/community.html" VERSION="24.11 (Vicuna)" VERSION_CODENAME=vicuna VERSION_ID="24.11" plugins: ======Config-Start====== Config File: /home/igni/.config/hypr/hyprland.conf: Read Succeeded #autogenerated = 1 # remove this line to remove the warning # See https://wiki.hyprland.org/Configuring/Monitors/ # monitor=,preferred,auto,auto monitor=DP-1, 3840x2160@60, 0x0, 1 monitor=DP-2, 2560x1440@60, 3840x0, 1 # See https://wiki.hyprland.org/Configuring/Keywords/ for more # Execute your favorite apps at launch exec-once = copyq --start-server exec-once = hyprpaper exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once = [workspace 1 silent] firefox exec-once = [workspace 2 silent] discord exec-once = [workspace 2 silent] telegram-desktop exec-once = [workspace 8 silent] obs --disable-shutdown-check exec-once = easyeffects --gapplication-service # Source a file (multi-file configs) # source = ~/.config/hypr/myColors.conf # Some default env vars. env = XCURSOR_SIZE, 24 env = XDG_CURRENT_DESKTOP, hyprland input { force_no_accel = false repeat_delay = 200 repeat_rate = 45 accel_profile = flat kb_layout = us, ru kb_variant = kb_model = kb_options = compose:ralt,grp_led:caps,grp:caps_toggle kb_rules = numlock_by_default = true follow_mouse = 1 scroll_factor = 0.8 #accel_profile = custom #scroll_points = 1 1 1 1 1 1 touchpad { natural_scroll = no } sensitivity = 0.9 # -1.0 - 1.0, 0 means no modification. } general { # See https://wiki.hyprland.org/Configuring/Variables/ for more gaps_in = 4 gaps_out = 10 border_size = 2 col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg col.inactive_border = rgba(595959aa) # cursor_inactive_timeout = 100 resize_on_border=false hover_icon_on_border=false layout = dwindle # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on allow_tearing = false } decoration { rounding = 14 blur { enabled = true size = 3 passes = 2 } drop_shadow = yes shadow_range = 4 shadow_render_power = 3 col.shadow = rgba(1a1a1aee) } animations { enabled = yes # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more #.17,.67,.83,.67 bezier = myBezier, 0.175, 0.885, 0.32, 1 animation = windows, 1, 4, default animation = windowsOut, 1, 7, default, popin 80% animation = border, 1, 10, default animation = borderangle, 1, 8, default animation = fade, 1, 7, default animation = workspaces, 1, 5, myBezier } dwindle { # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more pseudotile = 1 # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below preserve_split = 1 # you probably want thisss no_gaps_when_only=1 } master { # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more #new_is_master = true } gestures { # See https://wiki.hyprland.org/Configuring/Variables/ for more workspace_swipe = off } # Example per-device config # See https://wiki.hyprland.org/Configuring/Keywords/#executing for more #device:epic-mouse-v1 { # sensitivity = -0.5 #} group { col.border_active=rgba(33ccffee) col.border_inactive=rgba(595959aa) insert_after_current=true1 groupbar { col.active = rgba(33ccffee) col.inactive = rgba(595959aa) height = -5 font_size = 0 render_titles = false scrolling = false } } xwayland { # force_zero_scaling=true } misc { vfr = false disable_hyprland_logo = true } # Example windowrule v1 # windowrule = float, ^(kitty)$ # Example windowrule v2 # windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more # See https://wiki.hyprland.org/Configuring/Keywords/ for more $mainMod = SUPER # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more bind = $mainMod, RETURN, exec, kitty bind = $mainMod, C, killactive, #bind = $mainMod, M, exit, bind = $mainMod, E, exec, nemo bind = $mainMod, V, togglefloating, bind = $mainMod, D, exec, wofi --show drun -I bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle bind = $mainMod, W, togglegroup bind = CTRL ALT, left, changegroupactive, b bind = CTRL ALT, right, changegroupactive, f #bind = $mainMod, K, exec, killall waybar || waybar # Move focus with mainMod + arrow keys bind = $mainMod, left, movefocus, l bind = $mainMod, right, movefocus, r bind = $mainMod, up, movefocus, u bind = $mainMod, down, movefocus, d # Switch workspaces with mainMod + [0-9] bind = $mainMod, 1, workspace, 1 bind = $mainMod, 2, workspace, 2 bind = $mainMod, 3, workspace, 3 bind = $mainMod, 4, workspace, 4 bind = $mainMod, 5, workspace, 5 bind = $mainMod, 6, workspace, 6 bind = $mainMod, 7, workspace, 7 bind = $mainMod, 8, workspace, 8 bind = $mainMod, 9, workspace, 9 bind = $mainMod, 0, workspace, 10 # Move active window to a workspace with mainMod + SHIFT + [0-9] bind = $mainMod SHIFT, 1, movetoworkspace, 1 bind = $mainMod SHIFT, 2, movetoworkspace, 2 bind = $mainMod SHIFT, 3, movetoworkspace, 3 bind = $mainMod SHIFT, 4, movetoworkspace, 4 bind = $mainMod SHIFT, 5, movetoworkspace, 5 bind = $mainMod SHIFT, 6, movetoworkspace, 6 bind = $mainMod SHIFT, 7, movetoworkspace, 7 bind = $mainMod SHIFT, 8, movetoworkspace, 8 bind = $mainMod SHIFT, 9, movetoworkspace, 9 bind = $mainMod SHIFT, 0, movetoworkspace, 10 # Scroll through existing workspaces with mainMod + scroll #bind = $mainMod, mouse_down, workspace, e+1 #bind = $mainMod, mouse_up, workspace, e-1 #bind = , mouse:274, exec, ; # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow # bind = SUPER SHIFT, left, movewindow, l bind = SUPER SHIFT, right, movewindow, r bind = SUPER SHIFT, up, movewindow, u bind = SUPER SHIFT, down, movewindow, d bind =, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ bind =, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- bind =, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle bind =, XF86AudioPlay, exec, playerctl play-pause bind =, XF86AudioNext, exec, playerctl next bind =, XF86AudioPrev, exec, playerctl previous #bind = CTRL SHIFT, X, exec, grimblast --freeze save area - | swappy -f - bind = CTRL SHIFT, X, exec, watershot -s | swappy -f - windowrule=float, copyq bind = CTRL ALT, X, exec, copyq show #cargo dev windowrulev2 = float, title:(GTK) windowrulev2 = float, title:(elix) windowrulev2 = nofocus, class:^(fl64.exe)$, title:^()$ windowrulev2 = nofocus, class:^(steam)$, title:^()$ #windowrulev2 = nofocus, class:^(jetbrains-webstorm)$, title:^()$ windowrulev2=noinitialfocus,xwayland:1 ======Config-End======== ```

Description

I have for 1 scroll down, counts as 5 (3) scrolls down or up, no scroll_factory does not help with this problem. This behavior I observed only in chrome on versions BEFORE 0.40.0 inclusive. How can this be fixed? Telegram scrolls too fast and I can't figure out how to fix it.

How to reproduce

scrolling

Crash reports, logs, images, videos

https://youtube.com/shorts/40HvP_hz29Y || Telegram with a very large correspondence. My scrolling is shuffling like crazy. I can't position it

https://youtube.com/shorts/3MsD8fKDo78 || Firefox (any app at all, in fact). I can't set zoom to normal at all.

pink10000 commented 4 months ago

I've been having the same issue for the last few weeks ago.

khaneliman commented 4 months ago

This was from a recent attempt to fix a scroll issue that we were seeing after the rewrite where some applications wouldn't respond to the scroll speed unless scroll factor was really high. It was basically 1 scroll step and stop or 5x scrolling speed to allow scrolling normally.

Here's the PR of the change that fixed the scroll stopping but had a side effect of the super high scroll factor. https://github.com/hyprwm/Hyprland/pull/6317

Agent00Ming commented 4 months ago

same as #6496 and #6681

IgnIVertiKalCaD commented 4 months ago

Why is there no plan to fix this retarded bug that prevents any kind of work? I can't even move in fl studio 1 pattern down in 1 scroll down. I can't even move 5 patterns down and I can't even set pattern 2 or pattern 3.

Agent00Ming commented 4 months ago

Read up on the other issues I've brought up. A fix is planned but this issue is just a duplicate of many others.

caretakr commented 3 months ago

It seems that this issue is related to the new high-resolution driver (or implementation) for Logitech mice that came with the kernel (something like that) (more here: https://bbs.archlinux.org/viewtopic.php?id=296537).

I solve it by disabling the driver with a .conf file in /etc/modprobe.d/ with content below and the mice scroll returned to normal:

# /etc/modprobe.d/blacklist-logitech.conf

install hid_logitech_hidpp /usr/bin/true

NOTE: this install [...] /usr/bin/true is some kind of trick to disable driver for good.