This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch evas-sdl3-rewrite
in repository efl.
View the commit online.
commit c29471d4f6c6bb1536be41b301572da328748297
Author: Swagtoy <[email protected]>
AuthorDate: Mon May 11 01:43:49 2026 -0400
ecore_sdl: invert scroll wheel event y direction
+ style touchup. Unsure why it was inverted, perhaps historical or a mistake?
Signed-off-by: Swagtoy <[email protected]>
---
src/lib/ecore_sdl/ecore_sdl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/ecore_sdl/ecore_sdl.c b/src/lib/ecore_sdl/ecore_sdl.c
index 519577021c..fe3dcb3143 100644
--- a/src/lib/ecore_sdl/ecore_sdl.c
+++ b/src/lib/ecore_sdl/ecore_sdl.c
@@ -233,8 +233,8 @@ ecore_sdl_feed_events(void)
ev->event_window = event.wheel.windowID;
ev->modifiers = 0; /* FIXME: keep modifier around. */
ev->direction = 0;
- ev->z = event.wheel.x != 0 ? event.wheel.x : event.wheel.y;
- ev->direction = event.wheel.x != 0 ? 0 : 1;
+ ev->z = (event.wheel.integer_x != 0) ? (event.wheel.integer_x) : (-event.wheel.integer_y);
+ ev->direction = (event.wheel.integer_x != 0) ? (0) : (1);
ecore_event_add(ECORE_EVENT_MOUSE_WHEEL, ev, NULL, NULL);
break;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.