mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-29 04:54:12 +03:00
Fix ripple effect for touch devices
This commit is contained in:
parent
e4afe9f20e
commit
a10f546611
|
@ -173,7 +173,7 @@
|
||||||
*/
|
*/
|
||||||
event = event.originalEvent;
|
event = event.originalEvent;
|
||||||
|
|
||||||
if(event.touches.length !== 1) {
|
if(event.touches.length === 1) {
|
||||||
return event.touches[0].pageX - wrapperOffset.left;
|
return event.touches[0].pageX - wrapperOffset.left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@
|
||||||
*/
|
*/
|
||||||
event = event.originalEvent;
|
event = event.originalEvent;
|
||||||
|
|
||||||
if(event.touches.length !== 1) {
|
if(event.touches.length === 1) {
|
||||||
return event.touches[0].pageY - wrapperOffset.top;
|
return event.touches[0].pageY - wrapperOffset.top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user