Skip to content

Fixes for scroll wheel in ScrollComponent#34

Open
mar4ello6 wants to merge 1 commit into
SethRobinson:masterfrom
mar4ello6:master
Open

Fixes for scroll wheel in ScrollComponent#34
mar4ello6 wants to merge 1 commit into
SethRobinson:masterfrom
mar4ello6:master

Conversation

@mar4ello6

Copy link
Copy Markdown
Contributor

Now, the scroll wheel will only scroll in the entity where the cursor is located. Before, it scrolled every Entity with ScrollComponent existing. The scroll bar now also recognizes the scroll wheel.

Now, the scroll wheel will only scroll in the entity where the cursor is located.
The scroll bar now also recognizes the scroll wheel.
@iProgramMC

Copy link
Copy Markdown
Contributor

I disagree with using Windows APIs directly within Proton, even if it's behind an ifdef-guard. I'd use extern variables or functions to get the x/y position of the cursor, and hook WM_MOUSEMOVE to update it.

I don't see why the scroll bar didn't fade in when scrolling. This is a good change.

@SethRobinson

Copy link
Copy Markdown
Owner

Appreciate the patch (sorry for the delay) - won't merge right now though, some things have changed since this was written (I added/changed some scroll wheel stuff so my SlideShow project could zoom in/out, it it may need to be tweaked to use that, hope to take a closer look later

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.

3 participants