Correctly handling drag events on folder titles.

This commit is contained in:
Samuel Clay 2014-04-18 14:59:17 -07:00
parent b340447074
commit 7e16d28ec1

View file

@ -145,10 +145,24 @@
invisibleHeaderButton.frame = CGRectMake(0, 0, customView.frame.size.width, customView.frame.size.height);
invisibleHeaderButton.alpha = .1;
invisibleHeaderButton.tag = section;
[invisibleHeaderButton addTarget:appDelegate.feedsViewController action:@selector(didSelectSectionHeader:) forControlEvents:UIControlEventTouchUpInside];
[invisibleHeaderButton addTarget:appDelegate.feedsViewController action:@selector(sectionTapped:) forControlEvents:UIControlEventTouchDown];
[invisibleHeaderButton addTarget:appDelegate.feedsViewController action:@selector(sectionUntapped:) forControlEvents:UIControlEventTouchUpInside];
[invisibleHeaderButton addTarget:appDelegate.feedsViewController action:@selector(sectionUntappedOutside:) forControlEvents:UIControlEventTouchUpOutside];
[invisibleHeaderButton addTarget:appDelegate.feedsViewController
action:@selector(didSelectSectionHeader:)
forControlEvents:UIControlEventTouchUpInside];
[invisibleHeaderButton addTarget:appDelegate.feedsViewController
action:@selector(sectionTapped:)
forControlEvents:UIControlEventTouchDown];
[invisibleHeaderButton addTarget:appDelegate.feedsViewController
action:@selector(sectionUntapped:)
forControlEvents:UIControlEventTouchUpInside];
[invisibleHeaderButton addTarget:appDelegate.feedsViewController
action:@selector(sectionUntappedOutside:)
forControlEvents:UIControlEventTouchUpOutside];
[invisibleHeaderButton addTarget:appDelegate.feedsViewController
action:@selector(sectionUntappedOutside:)
forControlEvents:UIControlEventTouchCancel];
[invisibleHeaderButton addTarget:appDelegate.feedsViewController
action:@selector(sectionUntappedOutside:)
forControlEvents:UIControlEventTouchDragOutside];
[customView addSubview:invisibleHeaderButton];
if (!appDelegate.hasNoSites) {