Simple boolean option on canvas to allow scrolling on touchscreen devices

This commit is contained in:
Jeremy Watkins 2013-08-20 10:44:53 -07:00
parent 2f4cc5ec25
commit d728951ccf

View file

@ -97,7 +97,7 @@
* @param {Event} e Event object fired on mousemove
*/
_onMouseMove: function (e) {
e.preventDefault && e.preventDefault();
!this.allowTouchScrolling && e.preventDefault && e.preventDefault();
this.__onMouseMove(e);
},