Fix ripple effect for touch devices

This commit is contained in:
LinXitoW 2015-04-27 15:51:02 +02:00
parent e4afe9f20e
commit a10f546611

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;
}