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 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.38.4</string>
<string>1.38.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
......
......@@ -850,32 +850,22 @@ public class SideNavigationController : UIViewController, UIGestureRecognizerDel
/// Shows the statusBar.
private func showStatusBar() {
userInteractionEnabled = false
UIView.animateWithDuration(NSTimeInterval(UINavigationControllerHideShowBarDuration),
animations: { [weak self] in
self?.setNeedsStatusBarAppearanceUpdate()
MaterialDevice.statusBarHidden = false
}) { [weak self] _ in
if false == self?.opened {
self?.userInteractionEnabled = true
}
}
})
delegate?.sideNavigationStatusBarHiddenState?(self, hidden: false)
}
/// Hides the statusBar.
private func hideStatusBar() {
if enableHideStatusbar {
userInteractionEnabled = false
UIView.animateWithDuration(NSTimeInterval(UINavigationControllerHideShowBarDuration),
animations: { [weak self] in
self?.setNeedsStatusBarAppearanceUpdate()
MaterialDevice.statusBarHidden = true
}) { [weak self] _ in
if false == self?.opened {
self?.userInteractionEnabled = 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