os x swipe event fix