Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Changing defaultTouchPriority for CCControlColourPicker does not propagate to children controls #32

Description

@TinyRob

If you create an instance of CCControlColourPicker and then wish to change the touch priority for it, the effect is lost because the ivars "colourPicker" and "huePicker" do not get their defaultTouchPriority changed.

A simple fix for this would to just override the setter in CCControlColourPicker to look like this:

-(void) setDefaultTouchPriority:(NSInteger)defaultTouchPriority
{
    [super setDefaultTouchPriority:defaultTouchPriority];
    [_huePicker setDefaultTouchPriority:defaultTouchPriority];
    [_colourPicker setDefaultTouchPriority:defaultTouchPriority];
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions