samvermette / SVSegmentedControl

A UISwitch-like segmented control for your iOS app.
http://samvermette.com/255
MIT License
1.33k stars 191 forks source link

Drag problem in Facebook layout type. #50

Open mimmo00 opened 11 years ago

mimmo00 commented 11 years ago

Hi, first of all, congratulations for the wonderful uicontrol. I've used several times your switch, no problem. But now I have implemented it in a Facebook layout type, a draggable view. When move the thumb, arrives in the middle and come back. With a single touch does work.

You know how to solve this problem?

Thanks man

samvermette commented 11 years ago

It's hard to visualize the problem you're describing. Can you post a video describing the issue? That would help.

mimmo00 commented 11 years ago

Hi, sure. Sorry for the mess inside the view: P

http://d.pr/v/7DVM

samvermette commented 11 years ago

Nice implementation of SVSegmentedControl...

It looks like the touch is getting cancelled somehow. Don't really have the time to recreate your setup, but here are a few clues:

mimmo00 commented 11 years ago

Thanks, tried to experiment and let you know. I have only one doubt, I do not think the problem is in the layout, because I have other uicontrol inside, and do not have this problem.

samvermette commented 11 years ago

You're right, if there's no problem with your UISwitch then there shouldn't be a problem with SVSegmentedControl. It's probably something in one of the tracking methods then...