Fix Touch events selection in dragMove method

Help make drag methods works for both touch and mouse events.
This commit is contained in:
Touch it 2013-06-11 17:52:16 +02:00
parent f6ec7e8ebd
commit c5ffca371e
3 changed files with 3 additions and 3 deletions

2
raphael-min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -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--) {

View File

@ -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--) {