Skip to content

Wrong calculation of position #5

Open
@RomanTruba

Description

@RomanTruba

Hello.
You have errors in positioning slider.
I mean that self.center returns center of view in superview, and you using it wrong. For center of view you should use this point:
CGPointMake(self.center.x, self.frame.size.height / 2);

Than you have trouble when thumbs liying on each other, then you cannot change value (for example, bring them both to right - you will unable to move)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions