Skip to content

Default scroll behavior is non-natural #587

@Deftu

Description

@Deftu

My existing fix in 114f9dd is extremely sub optimal as it bandaids a fix into the PolyUIScreen rather than fixing the actual behavior.

As it is now, the default value of "natural scrolling" is set to true, which inverses the scroll direction so that up-scroll moves downwards and vice versa, which is unnatural for most non-Mac users.
The scroll amount is also unnatural and needs to be looked into, as GLFW in 1.13+ (1.16+ for us) provides a delta of 1.0/-1.0 (on mice, at least), meaning we'd only move 1 pixel per step on those versions, and LWJGL's input handler in 1.12- provided ~120 (for me, I assume it's based on system settings), which seemed to equate to 120 pixels.

My fix forcibly undid natural scrolling mathematically and forced scrolling to move 15 pixels per step.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions