mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-29 03:00:09 +00:00
added pinch/swipe weight to pinch handlers (if pinch is smaller than distance, ignore it)...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
f6a9da12a4
commit
feee2c7454
@ -43,11 +43,17 @@ $(document).ready(function(){
|
||||
},
|
||||
|
||||
pinchIn: function(event, direction, distance, duration, fingerCount, pinchZoom) {
|
||||
if(pinchZoom < distance){
|
||||
return
|
||||
}
|
||||
if(fingerCount == 2){
|
||||
togglePageView('on')
|
||||
}
|
||||
},
|
||||
pinchOut: function(event, direction, distance, duration, fingerCount, pinchZoom) {
|
||||
if(pinchZoom < distance){
|
||||
return
|
||||
}
|
||||
if(fingerCount == 2){
|
||||
togglePageView('off')
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user