Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable default reaction on secondary clicks when we click on Button,…
… move Slider, etc This CL disable all non-left button interactions for clickable, draggable, etc. Now we have these event API's: - low-level awaitPointerEvent, which triggers on any event (no matter if it is left or right mouse button) - medium-level awaitFirstDown, which triggers only on left mouse event. If we would trigger it on right click too, the user can't distinguish it if it was left or right click, because we don't provide this information in PointerInputChange. In the future we can add something like `filter: (PointerEvent) -> Unit = PrimaryButtonFilter` to awaitFirstDown, and to high-level API. - high-level clickable, draggable, toggleable, which use awaitFirstDown under the hood - high level mouseClickable, which provides info about which button was pressed. It doesn't use awaitFirstDown under the hood. Fixes JetBrains/compose-multiplatform#832
- Loading branch information