Skip to content
Draft
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: 4 additions & 0 deletions FSCalendar/FSCalendar.m
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,10 @@ - (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoi
}
}

// Work-around : When voice over triggers a scroll, this current delegate is always called with a targetContentOffset of 0,0
// which sends the calendar to the minimum date, 1970 and causes a crash
if (targetOffset == 0 ) { return; }

NSInteger sections = lrint(targetOffset/contentSize);
NSDate *targetPage = nil;
switch (_scope) {
Expand Down