* fixed a bug if TouchEvent is not defined in the browser,an exception will be thrown,cause else branch statements not to be executed. * fixed a bug Check whether 'TouchEvent' is defined in the browser. * trims extra spaces
@@ -1113,7 +1113,7 @@
_dragging = false;
- if ( event instanceof TouchEvent ) {
+ if ( 'TouchEvent' in window && event instanceof TouchEvent ) {
// Force "rollover"