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

Fix overlay touch detection #6372

Merged
merged 3 commits into from
Jul 8, 2020
Merged

Fix overlay touch detection #6372

merged 3 commits into from
Jul 8, 2020

Conversation

guyca
Copy link
Collaborator

@guyca guyca commented Jul 7, 2020

When the Overlay was displayed with statusBar.drawBehind: false, the StatusBar height wasn't accounted for when calculating if touch events were inside the view's bounds.

To begin with, StatusBar height had to be accounted for because we used MotionEvent.rawY coordinates instead of MotionEvent.y coordinate which already take into account the view's position within the hierarchy, which compensates for StatusBar height.

fixes #5976

@yogevbd yogevbd merged commit 5e03718 into master Jul 8, 2020
@yogevbd yogevbd deleted the fixOverlayTouchDetection branch July 8, 2020 07:50
@bneigher
Copy link

bneigher commented Jul 8, 2020

🚀

@bneigher
Copy link

has this been regressed? I am now seeing this again in my app :/

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

Successfully merging this pull request may close these issues.

[v6 Android] bottomTabs elevation blocks any overlayed components
3 participants