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

Fix knob scrolling and remove some dead code #789

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

rswinkle
Copy link
Contributor

@rswinkle rswinkle commented Mar 5, 2025

What it says on the tin. Scrolling with the mouse hovering over a knob is supposed to just adjust the knob but it adjusts the knob and scrolls the parent window if possible so you get one change and then you're off it.

I looked at how nk_panel_end() handles it (eliminating some code while I was looking) but that would require more extensive changes and just setting the mouse delta.y to 0 works perfectly fine.

@RobLoach RobLoach merged commit b0fbe40 into Immediate-Mode-UI:master Mar 7, 2025
1 check passed
@RobLoach
Copy link
Contributor

RobLoach commented Mar 7, 2025

Thanks, glad Knob is getting some love

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

Successfully merging this pull request may close these issues.

None yet

2 participants