Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PDTSimpleCalendar/PDTSimpleCalendarViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#import "PDTSimpleCalendarViewFlowLayout.h"
#import "PDTSimpleCalendarViewCell.h"
#import "PDTSimpleCalendarViewHeader.h"

#import <tgmath.h>

const CGFloat PDTSimpleCalendarOverlaySize = 14.0f;

Expand Down Expand Up @@ -413,7 +413,7 @@ - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollection
- (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset
{
//We only display the overlay view if there is a vertical velocity
if ( fabsf(velocity.y) > 0.0f) {
if ( __tg_fabs(velocity.y) > 0.0f) {
if (self.overlayView.alpha < 1.0) {
[UIView animateWithDuration:0.25 animations:^{
[self.overlayView setAlpha:1.0];
Expand Down