Skip to content

Commit bc1cfe4

Browse files
committed
Fix a bug state was not changed property after v2.8.1
The state was not changed after moving a panel without attractive interaction. For example, a panel is moved from half to full and the scroll content continues to scroll with its deceleration animation. We can test it on 'Show tracking(TextView)' in Samples app. dbef6a6 commit causes this issue.
1 parent 0e0f773 commit bc1cfe4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/Core.swift

+1
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,7 @@ class Core: NSObject, UIGestureRecognizerDelegate {
728728
}
729729

730730
guard shouldAttract(to: target) else {
731+
self.state = target
731732
self.updateLayout(to: target)
732733
self.unlockScrollView()
733734
// The `floatingPanelDidEndDragging(_:willAttract:)` must be called after the state property changes.

0 commit comments

Comments
 (0)