-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
key_moveup and key_movedown mapped to WHEEL_UP and WHEEL_DOWN jump two items in osd #133
Comments
I'm not able to reproduce this. If you do Could this be an issue with your mouse? Could you run |
Not, continue to jump from 1 to 3 to 5 etc
Seems to be 2 events
I tried 3 different mouses and happens with all of them with xev it only show one event (press and release) ButtonPress event, serial 38, synthetic NO, window 0xa00001, ButtonRelease event, serial 38, synthetic NO, window 0xa00001, ButtonPress event, serial 38, synthetic NO, window 0xa00001, ButtonRelease event, serial 38, synthetic NO, window 0xa00001, |
Interesting. It seems from my scripts point of view it is behaving correctly if we are in fact receiving 2 wheel down events from mpv. Could you just double check that this issue also applies to native mpv functionality like pause (instant pause and unpause on one scroll down). I would recommend maybe opening an issue in mpv repository if you think it's an issue in mpv rather than your operating system or hardware. |
with WHEEL_DOWN cycle pause in input.conf
Same
I think I found the problem. Is the wayland session. In a Xorg session using imwheel to change the scroll lines of the wheel button it obeys the value 1 lines, 2 lines, etc. Works fine without any imwheel modification too But in the wayland session imwheel doesn't work and I don't know how to change the value and it seems to be 2 lines for event. Do you think that is worth to post the problem in mpv? |
Nice debugging!
Probably worth it. On a quick look it seems there is some wayland specific code in mpv. Not sure if that has anything to do with inputs though. If it consistently happens with all applications, then probably the issue is in wayland and could be reported elsewhere. I'll close this issue as resolved! |
I have
key_showplaylist=SHIFT+ENTER MBTN_MID
key_moveup=UP WHEEL_UP
key_movedown=DOWN WHEEL_DOWN
key_playfile=ENTER MBTN_LEFT
key_closeplaylist=ESC SHIFT+ENTER MBTN_MID
to use the script with the mouse
Show and close the OSD and play the file selected with left click work fine but the mouse wheel jumps two items up and down instead of one.
mpv v0.37.0-7-g86b498ecc0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
built on Nov 22 2023 17:27:28
libplacebo version: v6.338.0-58-g2385b367
FFmpeg version: N-112826-g707e46dc54
FFmpeg library versions:
libavutil 58.32.100
libavcodec 60.34.100
libavformat 60.17.100
libswscale 7.6.100
libavfilter 9.13.100
libswresample 4.13.100
Ubuntu 23.10 with gnome 45.0
The text was updated successfully, but these errors were encountered: