Add magnify and rotate gesture event support for Mac