mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-25 11:04:09 +03:00
Fix ripple effect for touch devices
This commit is contained in:
parent
e4afe9f20e
commit
a10f546611
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user