Commit 310eafdf by Daniel Dahan

fix for issue-280, where SideNavigationController was causing an event issue by…

fix for issue-280, where SideNavigationController  was causing an event issue by consuming the pan events
parent 12270f14
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>FMWK</string> <string>FMWK</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.38.4</string> <string>1.38.5</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
......
...@@ -850,32 +850,22 @@ public class SideNavigationController : UIViewController, UIGestureRecognizerDel ...@@ -850,32 +850,22 @@ public class SideNavigationController : UIViewController, UIGestureRecognizerDel
/// Shows the statusBar. /// Shows the statusBar.
private func showStatusBar() { private func showStatusBar() {
userInteractionEnabled = false
UIView.animateWithDuration(NSTimeInterval(UINavigationControllerHideShowBarDuration), UIView.animateWithDuration(NSTimeInterval(UINavigationControllerHideShowBarDuration),
animations: { [weak self] in animations: { [weak self] in
self?.setNeedsStatusBarAppearanceUpdate() self?.setNeedsStatusBarAppearanceUpdate()
MaterialDevice.statusBarHidden = false MaterialDevice.statusBarHidden = false
}) { [weak self] _ in })
if false == self?.opened {
self?.userInteractionEnabled = true
}
}
delegate?.sideNavigationStatusBarHiddenState?(self, hidden: false) delegate?.sideNavigationStatusBarHiddenState?(self, hidden: false)
} }
/// Hides the statusBar. /// Hides the statusBar.
private func hideStatusBar() { private func hideStatusBar() {
if enableHideStatusbar { if enableHideStatusbar {
userInteractionEnabled = false
UIView.animateWithDuration(NSTimeInterval(UINavigationControllerHideShowBarDuration), UIView.animateWithDuration(NSTimeInterval(UINavigationControllerHideShowBarDuration),
animations: { [weak self] in animations: { [weak self] in
self?.setNeedsStatusBarAppearanceUpdate() self?.setNeedsStatusBarAppearanceUpdate()
MaterialDevice.statusBarHidden = true MaterialDevice.statusBarHidden = true
}) { [weak self] _ in })
if false == self?.opened {
self?.userInteractionEnabled = true
}
}
delegate?.sideNavigationStatusBarHiddenState?(self, hidden: true) delegate?.sideNavigationStatusBarHiddenState?(self, hidden: true)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment