Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong calculation of position #5

Open
RomanTruba opened this issue Aug 11, 2012 · 1 comment
Open

Wrong calculation of position #5

RomanTruba opened this issue Aug 11, 2012 · 1 comment

Comments

@RomanTruba
Copy link

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)

@snikch
Copy link
Contributor

snikch commented Aug 12, 2012

Hi there,

Thanks for pointing this out. I was admittedly quite new at iOS when I first wrote it. Feel free to create a pull request to fix any positioning issues, it would be much appreciated!

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants