We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5691726 commit c9d5beaCopy full SHA for c9d5bea
1 file changed
SLTDoubleTapSegmentedControl/SLTDoubleTapSegmentedControl.swift
@@ -58,10 +58,10 @@ public class SLTDoubleTapSegmentedControl: UISegmentedControl {
58
59
// MARK: Custom touch handling
60
61
- override public func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
62
- let previousSelectedSegmentIndex = selectedSegmentIndex
+ override public func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
+ let previousSelectedSegmentIndex = selectedSegmentIndex
63
64
- super.touchesEnded(touches, with: event)
+ super.touchesBegan(touches, with: event)
65
66
if previousSelectedSegmentIndex == selectedSegmentIndex {
67
// Clear the segmented control
0 commit comments