issue #2304:accelerometer fix of mac