Skip to content

Swapping mouse buttons in controls causes menu scroll bars to stick to the cursor #126

Description

@TheTechnoGoblin

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.

Image

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
Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions