Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse wheel management in TextBox #10

Open
gbaudic opened this issue Sep 16, 2017 · 3 comments
Open

Mouse wheel management in TextBox #10

gbaudic opened this issue Sep 16, 2017 · 3 comments

Comments

@gbaudic
Copy link
Contributor

gbaudic commented Sep 16, 2017

When playing with the included example sdlwidgets, using the scroll wheel has no effect.

@gbaudic
Copy link
Contributor Author

gbaudic commented Nov 19, 2017

The scroll wheel logic is in the ScrollArea class and is implemented. I will need to check if the logic is broken or if it is only a focus problem (the scroll area may need to have focus to receive mouse events).

@damianday
Copy link

mouseInput.setType(MouseInput::WHEEL_MOVED_DOWN);

Forgot to push the event before breaking, looks like mouse X and Y need setting as well.

@gbaudic
Copy link
Contributor Author

gbaudic commented Jan 29, 2020

Thanks for the tip! I tried this fix on my fork and it does not seem sufficient: for the moment, I only manage to see some response in the dropdown widget.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants