Fixed mouse motion events with captured mouse mode in OS X