diff --git a/ios/RCTPdf/RCTPdfView.m b/ios/RCTPdf/RCTPdfView.m index 3b87d51d..b45ca048 100644 --- a/ios/RCTPdf/RCTPdfView.m +++ b/ios/RCTPdf/RCTPdfView.m @@ -45,6 +45,7 @@ - (instancetype)initWithFrame:(CGRect)frame self.maximumZoomScale = 3.0; self.bouncesZoom = NO; self.bounces = YES; + self.delaysContentTouches = NO; // fix statusbar effect when statusbar show/hide if (@available(iOS 11.0, *)) { @@ -63,6 +64,11 @@ - (instancetype)initWithFrame:(CGRect)frame return self; } +- (BOOL)touchesShouldBegin:(NSSet *)touches withEvent:(UIEvent *)event inContentView:(UIView *)view +{ + return NO; +} + - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView {