jdg / MBProgressHUD

MBProgressHUD + Customizations
http://www.bukovinski.com/
MIT License
16.01k stars 3.56k forks source link

HUD not dismissing when userInteractionEnabled set to NO and scroll view is scrolling #328

Closed DmitrijMaz closed 8 years ago

DmitrijMaz commented 8 years ago

The reason behind this is that dismiss timer is added to NSRunLoop in default mode, which blocks the timer from firing if any of input sources is currently recognises events. To avoid this you need to add timer in NSRunLoopCommonMode.

self.minShowTimer = [NSTimer scheduledTimerWithTimeInterval:(self.minShowTime - interv) target:self 
                                selector:@selector(handleMinShowTimer:) userInfo:nil repeats:NO];

scheduledTimerWithTimeInterval adds timer to NSDefaultRunLoopMode.

matej commented 8 years ago

Fixed in the latest master.