Skip to content

Commit

Permalink
fix: solve the gesture conflict when rotating dial for not full scree…
Browse files Browse the repository at this point in the history
…n presentation (#272)
  • Loading branch information
guoyingtao committed Feb 3, 2023
1 parent d2462f5 commit ca09343
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/Mantis/RotationDial/RotationDial+Touches.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,12 @@ extension RotationDial {
didFinishedRotate()
viewModel.touchPoint = nil
}

override func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
if gestureRecognizer is UIPanGestureRecognizer {
return false
}

return true
}
}

0 comments on commit ca09343

Please sign in to comment.