This PR resolve gesture conflict between Modifier.zoomable and the parent component such like HorizontalPager.
Description
To resolve Issue #93, I previously merged PR #125, which implemented NestedScrollConnection in Modifier.zoomable. But it required the user to change Pager's pageNestedScrollConnection option.
However, I found a better way:
Modifier.zoomable checks the PointerEventPass.Final to see if PointerInputEvents are consumed by a parent component.
If the events are consumed by a parent, Modifier.zoomable cancels its gesture handling.
The user does not need to make any changes to the Pager implementation.
In this PR, I implemented the way above, and reverted the change of #125.
Issue
Related PR
125
Overview
This PR resolve gesture conflict between Modifier.zoomable and the parent component such like HorizontalPager.
Description
To resolve Issue #93, I previously merged PR #125, which implemented NestedScrollConnection in Modifier.zoomable. But it required the user to change Pager's pageNestedScrollConnection option.
However, I found a better way:
PointerEventPass.Final
to see if PointerInputEvents are consumed by a parent component.The user does not need to make any changes to the Pager implementation.
In this PR, I implemented the way above, and reverted the change of #125.