mirror of
https://github.com/mpv-player/mpv
synced 2024-11-07 01:47:00 +01:00
input: don't ignore press-only mouse button events
Before this commit, only mouse events with both down and up events
were processed. This caused a regression with ignoring mouse wheel
events in cocoa, because these don't distinguish between up and down.
Regression caused by 5b38a52
.
This commit is contained in:
parent
f3045eff1e
commit
2396e62c0b
@ -1346,7 +1346,8 @@ static mp_cmd_t *interpret_key(struct input_ctx *ictx, int code)
|
|||||||
}
|
}
|
||||||
// This is a key up event, but the key up command is added by
|
// This is a key up event, but the key up command is added by
|
||||||
// release_down_cmd(), not by this code.
|
// release_down_cmd(), not by this code.
|
||||||
emit_key &= !(code & MP_KEY_EMIT_ON_UP);
|
if ((code & MP_KEY_EMIT_ON_UP) && ictx->current_down_cmd)
|
||||||
|
emit_key = false;
|
||||||
// Interpret only maximal point of multibutton event
|
// Interpret only maximal point of multibutton event
|
||||||
ret = NULL;
|
ret = NULL;
|
||||||
if (emit_key)
|
if (emit_key)
|
||||||
|
Loading…
Reference in New Issue
Block a user