Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| dfa9a77816 | |||
| afff000d8c | |||
| dd49fdea5e |
@@ -202,10 +202,10 @@ extension UseCaseController {
|
||||
fpc.set(contentViewController: contentVC)
|
||||
fpc.delegate = self
|
||||
|
||||
let apprearance = SurfaceAppearance()
|
||||
apprearance.cornerRadius = 38.5
|
||||
apprearance.shadows = []
|
||||
fpc.surfaceView.appearance = apprearance
|
||||
let appearance = SurfaceAppearance()
|
||||
appearance.cornerRadius = 38.5
|
||||
appearance.shadows = []
|
||||
fpc.surfaceView.appearance = appearance
|
||||
fpc.isRemovalInteractionEnabled = true
|
||||
|
||||
let mvc = UIViewController()
|
||||
|
||||
+2
-2
@@ -563,7 +563,7 @@ class Core: NSObject, UIGestureRecognizerDelegate {
|
||||
}
|
||||
|
||||
private func interruptAnimationIfNeeded() {
|
||||
if let animator = self.moveAnimator, animator.isRunning, 0 <= layoutAdapter.offsetFromMostExpandedAnchor {
|
||||
if let animator = self.moveAnimator, animator.isRunning {
|
||||
os_log(msg, log: devLog, type: .debug, "the attraction animator interrupted!!!")
|
||||
animator.stopAnimation(true)
|
||||
endAttraction(false)
|
||||
@@ -610,7 +610,7 @@ class Core: NSObject, UIGestureRecognizerDelegate {
|
||||
guard
|
||||
isScrollable(state: state), // When not top most(i.e. .full), don't scroll.
|
||||
interactionInProgress == false, // When interaction already in progress, don't scroll.
|
||||
0 == layoutAdapter.offset(from: state),
|
||||
abs(layoutAdapter.offset(from: state)) < 1, // Indistinguishably close to an anchor point.
|
||||
!surfaceView.grabberAreaContains(initialLocation) // When the initial point is within grabber area, don't scroll
|
||||
else {
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user