Skip to content

Cursor state is not reset when changing screens #656

@fishstiz

Description

@fishstiz

Original reporter & ticket id

No response

Category

Frontend

Bug description

Some buttons may redirect the user to a different screen, and OneConfig's buttons change the cursor to a pointing hand when hovered. When clicking these buttons, the cursor keeps the pointing hand shape when the screen changes even though its not hovered on anything.

OneConfig.cursor.issue.mp4

Steps to reproduce

  1. Install:
    • Minecraft 26.1.2
    • Fabric Loader 0.19.2
    • OneConfig 1.0.0-beta.1
    • Fabric Language Kotlin 1.13.12+kotlin.2.4.0
  2. Open OneConfig
  3. Click "Edit Hud"
  4. Observe the pointing hand shape of the cursor even though it's not hovered on anything.

Anything else?

It can fix itself when the cursor's state is changed again, but the cursor will remain stuck (after following the Steps to reproduce) with the pointing hand shape when the "Allow Cursor Changes" option is disabled, and the user doesn't interact with OneConfig again or with mods that can change the cursor back (that doesn't use Minecraft's GuiGraphicsExtractor or Blaze3D's Window API to do so)

Also consider respecting the "Allow Cursor Changes" option from vanilla Minecraft

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions