- Optimized dock hiding events.