Amulet-Team / Amulet-Map-Editor

A new Minecraft world editor and converter that supports all versions since Java 1.12 and Bedrock 1.7.
https://www.amuletmc.com/
1.77k stars 123 forks source link

[Bug Report] Wayland mouse input problems #976

Open scarlettekk opened 1 year ago

scarlettekk commented 1 year ago

Bug Report

Current Behaviour:

When running under wayland, mouse input is very erratic and has an unusably high sensitivity. The further the mouse pointer is from the center of the screen, the worse the problem becomes. The video is even with sensitivity set to 1, the lowest option.

Expected behavior:

The mouse input runs at a reasonable rate and is easy to use.

Steps To Reproduce:

Launch program under wayland (I used Hyprland, on arch linux), make sure the program does not run under xwayland. Load a world and try using the mouse to rotate the viewport (right click + drag)

Environment:

Additional context

The problem does not occur under Xwayland, confirming it is something to do with wayland

Attachments

Screenshots

https://github.com/Amulet-Team/Amulet-Map-Editor/assets/42524580/c3827f45-8995-45d7-b672-31e39ec44879

Worlds

gentlegiantJGC commented 1 year ago

I am surprised no one has reported this sooner. This is probably because wayland does not support teleporting the mouse.

vaxerski commented 1 year ago

If you are the focused surface, it definitely does. See https://wayland.app/protocols/pointer-constraints-unstable-v1

xeyler commented 8 months ago

This bug is affecting my usage of amulet too. I'll try switching to switch while using amulet until a fix is available...