Skip to content

Add ability to distinguish device scroll events from inertial scroll events #4648

Description

@edwloef

Description

On some platforms the system sends its own inertial scrolling events. For example, on MacOS these can be identified by checking whether the event's momentumPhase is set.

However, an application may want to distinguish between "device" scroll events and "synthetic" scroll events. For example, changing the value of a slider or knob by scrolling on it should ideally be free of inertia. I propose adding a is_synthetic: bool field to the MouseWheel event, similar to the KeyboardInput event, and setting that to true for an event that originates from inertial scrolling.

Relevant platforms

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions