From 371fcacc87854b48c88bc364f06716581d6b08bc Mon Sep 17 00:00:00 2001 From: benonymity Date: Wed, 7 Dec 2022 13:31:15 -0500 Subject: [PATCH] Fix: don't allow webview to scroll out of bounds vertically --- ios/App/App/plugins/AbsAudioPlayer.swift | 1 + ios/App/Podfile | 13 ++++++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ios/App/App/plugins/AbsAudioPlayer.swift b/ios/App/App/plugins/AbsAudioPlayer.swift index 5dedae1a..76f1e863 100644 --- a/ios/App/App/plugins/AbsAudioPlayer.swift +++ b/ios/App/App/plugins/AbsAudioPlayer.swift @@ -26,6 +26,7 @@ public class AbsAudioPlayer: CAPPlugin { NotificationCenter.default.addObserver(self, selector: #selector(onLocalMediaProgressUpdate), name: NSNotification.Name(PlayerEvents.localProgress.rawValue), object: nil) self.bridge?.webView?.allowsBackForwardNavigationGestures = true; + self.bridge?.webView?.scrollView.alwaysBounceVertical = false; } diff --git a/ios/App/Podfile b/ios/App/Podfile index 331b14d2..5f4f5572 100644 --- a/ios/App/Podfile +++ b/ios/App/Podfile @@ -9,13 +9,12 @@ install! 'cocoapods', :disable_input_output_paths => true def capacitor_pods pod 'Capacitor', :path => '../../node_modules/@capacitor/ios' pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios' - pod 'CapacitorApp', :path => '..\..\node_modules\@capacitor\app' - pod 'CapacitorDialog', :path => '..\..\node_modules\@capacitor\dialog' - pod 'CapacitorHaptics', :path => '..\..\node_modules\@capacitor\haptics' - pod 'CapacitorNetwork', :path => '..\..\node_modules\@capacitor\network' - pod 'CapacitorStatusBar', :path => '..\..\node_modules\@capacitor\status-bar' - pod 'CapacitorStorage', :path => '..\..\node_modules\@capacitor\storage' - pod 'CordovaPlugins', :path => '../capacitor-cordova-ios-plugins' + pod 'CapacitorApp', :path => '../../node_modules/@capacitor/app' + pod 'CapacitorDialog', :path => '../../node_modules/@capacitor/dialog' + pod 'CapacitorHaptics', :path => '../../node_modules/@capacitor/haptics' + pod 'CapacitorNetwork', :path => '../../node_modules/@capacitor/network' + pod 'CapacitorStatusBar', :path => '../../node_modules/@capacitor/status-bar' + pod 'CapacitorStorage', :path => '../../node_modules/@capacitor/storage' end target 'Audiobookshelf' do