Swapping mouse buttons in controls causes menu scroll bars to stick to the cursor
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 6
- Forks
- 21
- Avg merge
- 10d 13h
- Merged PRs (30d)
- 1
Description
Is there an existing issue for this?
- I have searched the existing issues.
Are you using the latest MineColonies Version?
- I am running the latest beta/release version of MineColonies for my Minecraft version.
I am also running the latest versions of other mods that are part of my problem.
Did you check on the Wiki? or ask on Discord?
- I checked the MineColonies Wiki and made sure my issue is not covered there. Or I was sent from discord to open an issue here.
What were you playing at the time? Were you able to reproduce it in both settings?
- Single Player
- Multi Player
Minecraft Version
1.21
MineColonies Version
1.1.1330
Structurize Version
1.0.830
Related Mods and their Versions
No response
Current Behavior
I play with RMB and LMB swapped. when i use the bar to scroll through a minecolonies menu, the bar will stick to the cursor. clicking doesn't stop the interaction but leaving the menu does. playing with default controls stops the bug.
Expected Behavior
the scroll bar to not stick to the cursor
Reproduction Steps
1: go to controls menu and copy the mouse control in the picture
2: open any world with minecolonies installed
3: the easiest menu to test this with would be the build tool but any other minecolonies menu with a scroll bar will work [like the restaurant food menu]
4: click the scroll bar then release, the bar should now move with the cursor even after releasing the button.
Logs
https://gist.github.com/TheTechnoGoblin/bb635fce2d8e4dc32d11b079b89a2c19
Anything else?
No response
Footer
Viewers
- Add a 👍 reaction to the bug report if you are also affected. This helps the bug report become more visible without cluttering the comments.
- ⚠️ Only add a comment if you have new insights or background information not already mentioned. Off-topic or "+1" comments will be deleted to keep the discussion focused.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with swapped mouse controls in the build tool menu, then compare it with the restaurant food menu and inspect the scrollbar input handling. The fix is complete when releasing the swapped-button input no longer leaves the scrollbar following the cursor, while default controls continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100