Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass touch events to underlying view when BackdropBottomSheet is not defined while at anchor point #44

Open
kristfal opened this issue Jul 25, 2018 · 0 comments

Comments

@kristfal
Copy link

Hey,

we have a use case quite similar to the standard google maps. However, we have one noticeable difference: When the bottom sheet is resting at the middle anchor point, we want touch events from the top part of the view (not covered by bottom sheet) to be propagated down into the underlying view (a map view).

Our bottom sheet component view stack is like this:

<CoordinatorLayout>
          {isVisible && (
            <BottomSheetBehavior
              peekHeight={190}
              hideable={false}
              anchorEnabled={true}
              anchorPoint={anchorPoint}
              elevation={10}
              state={behaviorState}
              onStateChange={this.handleStateChange}
            >
              <View style={styles.coordinatorContent}>{children}</View>
            </BottomSheetBehavior>
          )}
</CoordinatorLayout>

This component sits on top of the rest of the view stack.

When the bottom sheet is in position COLLAPSED, the underlying views get their properly propagated touch events. However in state ANCHOR_POINT, the underlying view does not receive any touch events in the "non-covered area", and dragging in this area moves the bottom sheet.

The expected behaviour in this case would be that touches and drag events in the non-covered area is propagated to the underlying views in the same fashion as in the COLLAPSED state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant