I was able to obtain a much smoother pinch-to-zoom gesture this way which is why I decided against using `gesture_detector.js`. I've used similar code to this for many mobile web projects for both Android and iOS, so if anything, you may have some ideas on gecko-specific tricks that could simplify/improve this.