Skip to content

[FlexibleHeader] Allow touch events in header to pass through#1

Open
mailiam wants to merge 2 commits into
developfrom
translucent-flexibleheader
Open

[FlexibleHeader] Allow touch events in header to pass through#1
mailiam wants to merge 2 commits into
developfrom
translucent-flexibleheader

Conversation

@mailiam

@mailiam mailiam commented Jan 16, 2019

Copy link
Copy Markdown

Make MDCFlexibleHeaderView and it's contentView pass event to higher hierarchy.

This allows translucent header to overlay interactive view.

example view hierachy

where header is between two interactive view

  • View
    • Carousel
    • Header (pass through)
      • contentView (pass through)
      • userHeaderView (hitTest overriden)
    • Card

possible breaking change of material-components#3032

Make `MDCFlexibleHeaderView` and it's `contentView` pass event to higher hierarchy.

This allows translucent header to overlay interactive view.

## example view hierachy
where header is between two interactive view
- View
  - Carousel
  - Header (pass through)
    - contentView (pass through)
    - userHeaderView (hitTest overriden)
  - Card

possible breaking change of material-components#3032
@mailiam mailiam closed this Jan 16, 2019
@mailiam mailiam reopened this Jan 16, 2019
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

Successfully merging this pull request may close these issues.

1 participant