mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-20 17:47:48 +00:00
[RN] "The View is never the target of touch events"
In preparation for "pinch to zoom" support in desktop streams on mobile, make certain Views not intervene in touch event handling. While the modification is necessary for "pinch to zoom" which is coming later, it really makes sense for the modified Views to not be involved in touching because they're used to aid layout and/or animations and are to behave to the user as if they're not there.
This commit is contained in:
committed by
Lyubo Marinov
parent
0afe72d42b
commit
cb70c084b3
@@ -135,9 +135,15 @@ export default class TintedView extends Component<Props, State> {
|
||||
render() {
|
||||
// XXX Don't tint the children, tint the background only.
|
||||
return (
|
||||
<View style = { BASE_STYLE }>
|
||||
<View style = { this.state.style } />
|
||||
<View style = { BASE_STYLE }>
|
||||
<View
|
||||
pointerEvents = 'box-none'
|
||||
style = { BASE_STYLE }>
|
||||
<View
|
||||
pointerEvents = 'none'
|
||||
style = { this.state.style } />
|
||||
<View
|
||||
pointerEvents = 'box-none'
|
||||
style = { BASE_STYLE }>
|
||||
{ this.props.children }
|
||||
</View>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user