Fix ripple effect for touch devices

This commit is contained in:
LinXitoW 2015-04-27 15:51:02 +02:00
parent c5cde3f98e
commit 25dbdcbdd7

View File

@ -173,7 +173,7 @@
*/
event = event.originalEvent;
if(event.touches.length !== 1) {
if(event.touches.length === 1) {
return event.touches[0].pageX - wrapperOffset.left;
}
@ -200,7 +200,7 @@
*/
event = event.originalEvent;
if(event.touches.length !== 1) {
if(event.touches.length === 1) {
return event.touches[0].pageY - wrapperOffset.top;
}