Skip to content

Commit dd49fde

Browse files
committed
Revert "Disallow interrupting the panel interaction while bouncing over the most expanded state (#652)"
This reverts commit b0fd0d4. This change had a problem normal cases. For example, in Maps example a panel interaction jumps occurs because of this.
1 parent a1f20ce commit dd49fde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Core.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ class Core: NSObject, UIGestureRecognizerDelegate {
563563
}
564564

565565
private func interruptAnimationIfNeeded() {
566-
if let animator = self.moveAnimator, animator.isRunning, 0 <= layoutAdapter.offsetFromMostExpandedAnchor {
566+
if let animator = self.moveAnimator, animator.isRunning {
567567
os_log(msg, log: devLog, type: .debug, "the attraction animator interrupted!!!")
568568
animator.stopAnimation(true)
569569
endAttraction(false)

0 commit comments

Comments
 (0)