Fix Touch events selection in dragMove method
Help make drag methods works for both touch and mouse events.
This commit is contained in:
parent
f6ec7e8ebd
commit
c5ffca371e
File diff suppressed because one or more lines are too long
|
|
@ -2771,7 +2771,7 @@
|
|||
j = drag.length;
|
||||
while (j--) {
|
||||
dragi = drag[j];
|
||||
if (supportsTouch) {
|
||||
if (supportsTouch && e.touches) {
|
||||
var i = e.touches.length,
|
||||
touch;
|
||||
while (i--) {
|
||||
|
|
|
|||
|
|
@ -3150,7 +3150,7 @@
|
|||
j = drag.length;
|
||||
while (j--) {
|
||||
dragi = drag[j];
|
||||
if (supportsTouch) {
|
||||
if (supportsTouch && e.touches) {
|
||||
var i = e.touches.length,
|
||||
touch;
|
||||
while (i--) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue