From 25dbdcbdd7ba314da65b0305ffaf80a9566c75ac Mon Sep 17 00:00:00 2001 From: LinXitoW Date: Mon, 27 Apr 2015 15:51:02 +0200 Subject: [PATCH] Fix ripple effect for touch devices --- scripts/ripples.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ripples.js b/scripts/ripples.js index ba50f292..634dfdf3 100644 --- a/scripts/ripples.js +++ b/scripts/ripples.js @@ -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; }