Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Scrolling is incredibly sensitive on macOS Big Sur when using a trackpad #1795

Open
5HT2 opened this issue Jan 5, 2021 · 0 comments
Open
Labels
-gui -help-wanted Extra attention is needed bug
Milestone

Comments

@5HT2
Copy link
Member

5HT2 commented Jan 5, 2021

I have confirmed this with a user and someone outside of KAMI Blue. It appears to be a lwjgl bug, I filed a report here: LWJGL/lwjgl#159.

Relevant code:

override fun onMouseInput(mousePos: Vec2f) {
super.onMouseInput(mousePos)
val relativeMousePos = mousePos.minus(posX, posY - renderScrollProgress)
if (Mouse.getEventDWheel() != 0) {
scrollTimer.reset()
scrollSpeed -= Mouse.getEventDWheel() * 0.1f
updateHovered(relativeMousePos)
}
if (mouseState != MouseState.DRAG) {
updateHovered(relativeMousePos)
}
if (!minimized) (hoveredChild as? InteractiveComponent)?.let {
it.onMouseInput(getRelativeMousePos(mousePos, it))
}
}

A workaround could be to add a setting inside the ClickGUI to divide the scrolling speed by 10, or just customize it overall.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
-gui -help-wanted Extra attention is needed bug
Projects
None yet
Development

No branches or pull requests

2 participants