You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
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.
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.
The text was updated successfully, but these errors were encountered:
I think I'd propose we go with option 2, choosing the direction with more scrollable overflow, as the primary axis and in the case of a tie choosing the block axis. I could be convinced that for predictability we should go with option 1, however I am somewhat concerned with doing this if we don't have the mechanism for changing the primary axis as many of the use cases we're imagining would be in the non-default horizontal axis.
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:
primary-overflow-direction
from Setting the primary scrolling direction for a scroll container #10060.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.
The text was updated successfully, but these errors were encountered: