diff --git a/RNGL/GLCanvas.m b/RNGL/GLCanvas.m index aa469413cbbdd1e080012eaab219c829d15c37f1..a5a4656a9dbf1f39f01986c34af0dbe030c51bd2 100644 --- a/RNGL/GLCanvas.m +++ b/RNGL/GLCanvas.m @@ -132,16 +132,16 @@ NSString* srcResource (id res) - (void)setEventsThrough:(BOOL)eventsThrough { _eventsThrough = eventsThrough; - [self updateUIE]; + [self syncEventsThrough]; } -(void)setVisibleContent:(BOOL)visibleContent { _visibleContent = visibleContent; - [self updateUIE]; + [self syncEventsThrough]; } -- (void) updateUIE +- (void) syncEventsThrough { self.userInteractionEnabled = !(_eventsThrough); self.superview.userInteractionEnabled = !(_eventsThrough && !_visibleContent); @@ -372,6 +372,7 @@ NSString* srcResource (id res) if (!_renderData) return; self.layer.opaque = _opaque; + [self syncEventsThrough]; CGFloat scale = RCTScreenScale();