Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
[RN] "The View is never the target of touch events"
Zoltan Bettenbukcb70c084b327
diff --git a/react/features/base/media/components/native/VideoTrack.js b/react/features/base/media/components/native/VideoTrack.jsindex c9680f0cae..dd885fee17 100644--- a/react/features/base/media/components/native/VideoTrack.js+++ b/react/features/base/media/components/native/VideoTrack.js@@ -58,7 +58,9 @@ class VideoTrack extends AbstractVideoTrack {return (<View style = { styles.video } >{ super.render() }- <Animated.View style = { animatedStyles } />+ <Animated.View+ pointerEvents = 'none'+ style = { animatedStyles } /></View>);}diff --git a/react/features/base/participants/components/ParticipantView.native.js b/react/features/base/participants/components/ParticipantView.native.jsindex e0b7d57884..72b314b22e 100644--- a/react/features/base/participants/components/ParticipantView.native.js+++ b/react/features/base/participants/components/ParticipantView.native.js@@ -158,8 +158,10 @@ class ParticipantView extends Component<Props> {};return (- <View style = { containerStyle } >- <Text style = { styles.connectionInfoText } >+ <View+ pointerEvents = 'box-none'+ style = { containerStyle }>+ <Text style = { styles.connectionInfoText }>{ t(messageKey, { displayName }) }</Text></View>diff --git a/react/features/base/react/components/native/Container.js b/react/features/base/react/components/native/Container.jsindex 0b5c2bfd92..893426300f 100644--- a/react/features/base/react/components/native/Container.js+++ b/react/features/base/react/components/native/Container.js@@ -43,10 +43,17 @@ export default class Container extends AbstractContainer {return null;}- let element = super._render(View, props);+ const onClickOrTouchFeedback = onClick || touchFeedback;+ let element+ = super._render(+ View,+ {+ pointerEvents: onClickOrTouchFeedback ? 'auto' : 'box-none',+ ...props+ });// onClick & touchFeedback- if (element && (onClick || touchFeedback)) {+ if (element && onClickOrTouchFeedback) {element= React.createElement(touchFeedbackdiff --git a/react/features/base/react/components/native/TintedView.js b/react/features/base/react/components/native/TintedView.jsindex 883f6c4c46..5c22d645fc 100644--- a/react/features/base/react/components/native/TintedView.js+++ b/react/features/base/react/components/native/TintedView.js@@ -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>diff --git a/react/features/conference/components/Conference.native.js b/react/features/conference/components/Conference.native.jsindex be26ee8bcb..e4d85b5d4f 100644--- a/react/features/conference/components/Conference.native.js+++ b/react/features/conference/components/Conference.native.js@@ -218,7 +218,9 @@ class Conference extends Component<Props> {</TintedView>}- <View style = { styles.toolboxAndFilmstripContainer } >+ <View+ pointerEvents = 'box-none'+ style = { styles.toolboxAndFilmstripContainer }>{/** The Toolbox is in a stacking layer bellow the Filmstrip.*/}diff --git a/react/features/toolbox/components/Toolbox.native.js b/react/features/toolbox/components/Toolbox.native.jsindex 44a03a57bc..f11f38ec09 100644--- a/react/features/toolbox/components/Toolbox.native.js+++ b/react/features/toolbox/components/Toolbox.native.js@@ -188,6 +188,7 @@ class Toolbox extends Component<Props> {return (<Viewkey = 'primaryToolbar'+ pointerEvents = 'box-none'style = { styles.primaryToolbar }><AudioMuteButton buttonStyles = { audioButtonStyles } /><HangupButton />@@ -219,6 +220,7 @@ class Toolbox extends Component<Props> {return (<Viewkey = 'secondaryToolbar'+ pointerEvents = 'box-none'style = { styles.secondaryToolbar }>{AudioRouteButton