mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Correctly handling drag events on folder titles.
This commit is contained in:
parent
b340447074
commit
7e16d28ec1
1 changed files with 18 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue