Skip to content

[css-overflow-5] Active marker in 2d scroller? #11198

Open
@flackr

Description

@flackr

When you have a group of scroll targets in a scroller that can scroll in multiple directions, how do you determine which one is active?

Options:

  1. Declare a primary direction to use in some manner. This could be a property on the scrolling container indicating, or on the marker group / pseudo marker group creation. My preference here would be to use something like the primary-overflow-direction from Setting the primary scrolling direction for a scroll container #10060.
  2. Automatically infer a primary direction to use. We could do this until a mechanism for declaring a direction exists / continue to support it with an automatic value. The automatic direction would likely be either the direction with more scrollable overflow.
  3. Use both axes of scroll in the determination of the active marker. We could possibly do this by using the distance from the current target scroll position to the marker's aligned positions.

With options 1 and 2, we could use the single direction as the primary direction but still use the secondary direction when the targeted location in the primary direction is the same. E.g. the first step could be determining the active set of markers on the primary direction, then repeat with the secondary direction.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions