Skip to content

Commit d779944

Browse files
committed
Update CCSlider.m
Fixing iOS version to not respond to dragging when self.enabled == NO. Mac version was already ok.
1 parent 821add6 commit d779944

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cocos2d-ui/CCSlider.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ - (void) updateSliderPositionFromValue
7676

7777
- (void) touchEntered:(UITouch*)touch withEvent:(UIEvent*)event
7878
{
79+
if (!self.enabled) return;
80+
7981
CGPoint worldLocation = [touch locationInWorld];
8082

8183
[self inputEnteredWithWorlPos:worldLocation];

0 commit comments

Comments
 (0)