-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Parent View click events are consumed by PlayerView [2.10.2] #6109
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
I don't see a reason why these touch events should be consumed in case we no-op. Marking as bug for now. |
Looking at the change which introduced this, makes me think that we changed to the standard Android behaviour. The touch event is delegated to performClick which triggers OnClickListeners of the given view. Can you check whether we also consume the click to which |
We shouldn't consume the event if no controller is present. That part of the change was unintentional. Marking as bug again to fix that. |
Issue:#6109 PiperOrigin-RevId: 255933121
Issue:#6109 PiperOrigin-RevId: 255933121
[REQUIRED] Searched documentation and issues
There was no mention of why click handling is being overridden by the
PlayerView
viaonTouchEvent
[REQUIRED] Question
We recently upgraded from exoplayer 2.8 to 2.10.2 and noticed not all of our Views hosting an exoplayer were clickable. Looking at the source shows that in 2.10.2 PlayerView consumes all touch events upon it's surface:
Whereas in 2.8 it would still allow touch/click events to be propagated to it's parent container unless the controller was present:
Is this intended behavior? It seems like a bug since it prevents any parent view from performing a click event if the tapped surface is within a PlayerView's bounds.
A full bug report captured from the device
n/a
Link to test content
n/a
The text was updated successfully, but these errors were encountered: