提交 ae9a3e42 编写于 作者: H Hu Jiulong 提交者: Mr.doob

fixed a bug (#9540)

* 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
上级 0d75491f
......@@ -1113,7 +1113,7 @@
_dragging = false;
if ( event instanceof TouchEvent ) {
if ( 'TouchEvent' in window && event instanceof TouchEvent ) {
// Force "rollover"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册