Skip to content

Commit

Permalink
Merge pull request #17 from tomaskraina/fix-notify-delegate-on-cancel
Browse files Browse the repository at this point in the history
Prevent the delegate from being notified if not necessary
  • Loading branch information
schwmi committed Feb 11, 2019
2 parents 1a82801 + b94059c commit 4fe124c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Aiolos/Aiolos/Sources/PanelGestures.swift
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,6 @@ private extension PanelGestures {
self.cleanUp(pan: pan)

let size = self.panel.size(for: originalMode)
self.panel.animator.notifyDelegateOfTransition(from: originalMode, to: originalMode)
self.panel.constraints.updateForPanCancelled(with: size)
if currentHeight != size.height {
self.panel.animator.notifyDelegateOfTransition(to: size)
Expand Down

0 comments on commit 4fe124c

Please sign in to comment.