When I look at Notch's minecraft demo here - I can drag on the viewport with my trackpad and have the perspective shift.
When I look at David Nolen's ClojureScript version of the demo here - this does not occur. (But it is very impressive).
My question is: How is this handling input events? (Is there some special js trick?)
For example - when I look at this code - I see:
document.addEventListener('touchstart', this.onTouch.bind(this), false);
document.addEventListener('touchmove', this.onTouch.bind(this), false);
document.addEventListener('touchend', this.onTouchEnd.bind(this), false);
EDIT: Some have questioned this behaviour and said they can't reproduce it using a mouse. Fair enough - I can't reproduce it with mouse clicks either. I recorded a video of me dragging the viewport using my trackpad.