mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-23 10:04:04 +03:00
Fix ripple effect for touch devices
This commit is contained in:
parent
c5cde3f98e
commit
25dbdcbdd7
|
@ -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