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

@TinyRob

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];
}

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