Skip to content

UIComponent: Improve vertical scrolling & add support for horizontal scrolling#176

Merged
RedEpicness merged 3 commits into
masterfrom
feature/scrolling-improvements
Mar 18, 2026
Merged

UIComponent: Improve vertical scrolling & add support for horizontal scrolling#176
RedEpicness merged 3 commits into
masterfrom
feature/scrolling-improvements

Conversation

@RedEpicness

Copy link
Copy Markdown
Contributor

This PR implements the new mouse scroll callback introduced in UniversalCraft#128 under a new Elementa version. Now that scroll deltas are consistent across versions, we stop coercing them to the -1.0 to 1.0 range to allow much more natural scrolling. Alongside this we also add horizontal scrolling
support.

Linear: EM-3575

Comment thread src/main/kotlin/gg/essential/elementa/ElementaVersion.kt Outdated
Comment thread src/main/kotlin/gg/essential/elementa/ElementaVersion.kt Outdated
Comment thread src/main/kotlin/gg/essential/elementa/events/UIMouseEvents.kt
Comment thread src/main/kotlin/gg/essential/elementa/events/UIMouseEvents.kt
Comment thread src/main/kotlin/gg/essential/elementa/WindowScreen.kt
Comment thread src/main/kotlin/gg/essential/elementa/ElementaVersion.kt
Comment thread src/main/kotlin/gg/essential/elementa/events/UIMouseEvents.kt Outdated
@RedEpicness RedEpicness force-pushed the feature/scrolling-improvements branch from 38d19f9 to dc23648 Compare March 17, 2026 12:08
@RedEpicness

Copy link
Copy Markdown
Contributor Author

I have not done extensive testing of the scroll component in-game yet to verify old vs new behavior as using my local maven artifact fails to compile for some reason so i'm pushing the changes to get a CI build to test against. The code should still be ready for review though, just wanted to mention that I might still add a change if i find a bug in testing. If you wish you can also wait until I test everything before reviewing though.

@RedEpicness RedEpicness requested a review from Johni0702 March 17, 2026 12:12
@RedEpicness RedEpicness merged commit bfa9cbe into master Mar 18, 2026
1 check passed
@RedEpicness RedEpicness deleted the feature/scrolling-improvements branch March 18, 2026 10:17
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.

2 participants