diff options
| author | Andre Weissflog <floooh@gmail.com> | 2026-02-12 18:33:49 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2026-02-12 18:33:49 +0100 |
| commit | 828ce74e8cb78287452993d078a01fbc22bf7ac2 (patch) | |
| tree | d4967cfea0cfcc5759fb4a55f732ebff476de640 | |
| parent | 3382bd5ae6cf80b7543edb1034231e29abeea99d (diff) | |
sokol_app.h emsc: fix mouse wheel delta to match native increments
| -rw-r--r-- | sokol_app.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sokol_app.h b/sokol_app.h index e4f37997..b6e54ede 100644 --- a/sokol_app.h +++ b/sokol_app.h @@ -7289,7 +7289,7 @@ _SOKOL_PRIVATE EM_BOOL _sapp_emsc_wheel_cb(int emsc_type, const EmscriptenWheelE /* see https://github.com/floooh/sokol/issues/339 */ float scale; switch (emsc_event->deltaMode) { - case DOM_DELTA_PIXEL: scale = -0.04f; break; + case DOM_DELTA_PIXEL: scale = -0.01f; break; case DOM_DELTA_LINE: scale = -1.33f; break; case DOM_DELTA_PAGE: scale = -10.0f; break; // FIXME: this is a guess default: scale = -0.1f; break; // shouldn't happen |