diff --git a/client/common/client.c b/client/common/client.c index 231051cd8..ebc5e1c08 100644 --- a/client/common/client.c +++ b/client/common/client.c @@ -1034,16 +1034,16 @@ BOOL freerdp_client_send_wheel_event(rdpClientContext* cctx, UINT16 mflags) if (mflags & PTR_FLAGS_WHEEL_NEGATIVE) value = -1 * (0x100 - value); + /* We have discrete steps, scale this so we can also support high + * resolution wheels. */ + value *= 0x10000; + if (mflags & PTR_FLAGS_WHEEL) { flags |= AINPUT_FLAGS_WHEEL; y = value; } - /* We have discrete steps, scale this so we can also support high - * resolution wheels. */ - value *= 0x10000; - if (mflags & PTR_FLAGS_HWHEEL) { flags |= AINPUT_FLAGS_WHEEL;