Skip to content

Conversation

@AlexandreK38
Copy link
Contributor

Hi,
I wanted to add a mouse scroll listener on the UIScrollView to be able to scroll with the mouse. Basically it works, but if we have several scroll views then they will all move, even if the mouse is not over them.

To be able to have only the top widget to handle the mouse scroll and not others, we need to implement the same touches events mechanism but for mouse events. So this will work for scroll event, but also press, released, and moved.
We can also, as for touches, add a listener to our own widgets.

@AlexandreK38
Copy link
Contributor Author

I forgot about the extensions, I'll need to fix them with the new code

@halx99 halx99 added this to the 2.7.0 milestone Jul 1, 2025
@halx99 halx99 added the enhancement New feature or request label Jul 1, 2025
@halx99 halx99 merged commit e7c55ff into axmolengine:dev Jul 3, 2025
15 checks passed
@AlexandreK38 AlexandreK38 deleted the mouse-events branch July 3, 2025 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants