proton
proton copied to clipboard
Fixes for scroll wheel in ScrollComponent
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.
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.
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