Skip to content

Commit 8ed0a59

Browse files
committed
Merge pull request #781 from richardgroves/patch-1
CCSlider can be dragged on iOS when !enabled
2 parents 821add6 + d779944 commit 8ed0a59

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)