Use NSEventTrackingRunLoopMode to avoid timer paused when ui block.
fix #1