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

Drag problem in Facebook layout type. #50

Open
mimmo00 opened this issue Apr 8, 2013 · 5 comments
Open

Drag problem in Facebook layout type. #50

mimmo00 opened this issue Apr 8, 2013 · 5 comments

Comments

@mimmo00
Copy link

mimmo00 commented Apr 8, 2013

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
Copy link
Owner

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

@mimmo00
Copy link
Author

mimmo00 commented Apr 9, 2013

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

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

@samvermette
Copy link
Owner

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:

  • Have a look at the Tracking in SVSegmentedControl.m
  • Add breakpoints to see what's going on.
  • Another thought is that the segmented control drag gets cancelled by the facebook layout type view. Just like a UITableView will cancel the touch of a cell when you drag it by enough pixels. Perhaps there's a similar property, like canCancelContentTouches on the facebook layout class?

@mimmo00
Copy link
Author

mimmo00 commented Apr 12, 2013

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
Copy link
Owner

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...

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