#1565 (story titles image preview doesn’t show until scroll gesture is finished)

This commit is contained in:
David Sinclair 2022-05-04 21:37:42 -06:00
parent d7ba5b6cd8
commit 3162ab8523

View file

@ -1326,8 +1326,12 @@ typedef NS_ENUM(NSUInteger, MarkReadShowMenu)
stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]]];
}
}
[self performSelector:@selector(cacheStoryImages:) withObject:storyImageUrls afterDelay:0.2];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.1 * NSEC_PER_SEC),
dispatch_get_main_queue(), ^(void) {
[self cacheStoryImages:storyImageUrls];
});
self.pageFetching = NO;
}