Skip to content

Commit

Permalink
Make NSTrackingArea for cell nil after it is removed for safety
Browse files Browse the repository at this point in the history
  • Loading branch information
Deadpikle committed Aug 26, 2016
1 parent 952ca56 commit 9e72c0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions JNWCollectionView/JNWCollectionViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ - (void)updateTrackingAreas {
[super updateTrackingAreas];
if (self.trackingArea) {
[self removeTrackingArea:self.trackingArea];
self.trackingArea = nil;
}

NSTrackingAreaOptions options = (NSTrackingActiveAlways | NSTrackingInVisibleRect | NSTrackingMouseEnteredAndExited | NSTrackingMouseMoved);
Expand Down

0 comments on commit 9e72c0f

Please sign in to comment.