File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
242242{
243243 [super touchesBegan: touches withEvent: event];
244244
245- // "start" has to record new touches beforeckirjiuhucekbebjditeucultigvijfe extracting the event.
245+ // "start" has to record new touches before extracting the event.
246246 // "end"/"cancel" needs to remove the touch *after* extracting the event.
247247 [self _recordNewTouches: touches];
248248 if (_dispatchedInitialTouches) {
Original file line number Diff line number Diff line change @@ -22,8 +22,9 @@ - (UIView *)view
2222{
2323 RCTSlider *slider = [RCTSlider new ];
2424 [slider addTarget: self action: @selector (sliderValueChanged: ) forControlEvents: UIControlEventValueChanged];
25- [slider addTarget: self action: @selector (sliderTouchEnd: ) forControlEvents: UIControlEventTouchUpInside];
26- [slider addTarget: self action: @selector (sliderTouchEnd: ) forControlEvents: UIControlEventTouchUpOutside];
25+ [slider addTarget: self action: @selector (sliderTouchEnd: ) forControlEvents: (UIControlEventTouchUpInside |
26+ UIControlEventTouchUpOutside |
27+ UIControlEventTouchCancel)];
2728 return slider;
2829}
2930
You can’t perform that action at this time.
0 commit comments