mirror of
https://github.com/flynx/PortableMag.git
synced 2025-11-03 13:30:19 +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) {
|
pinchIn: function(event, direction, distance, duration, fingerCount, pinchZoom) {
|
||||||
|
if(pinchZoom < distance){
|
||||||
|
return
|
||||||
|
}
|
||||||
if(fingerCount == 2){
|
if(fingerCount == 2){
|
||||||
togglePageView('on')
|
togglePageView('on')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
pinchOut: function(event, direction, distance, duration, fingerCount, pinchZoom) {
|
pinchOut: function(event, direction, distance, duration, fingerCount, pinchZoom) {
|
||||||
|
if(pinchZoom < distance){
|
||||||
|
return
|
||||||
|
}
|
||||||
if(fingerCount == 2){
|
if(fingerCount == 2){
|
||||||
togglePageView('off')
|
togglePageView('off')
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user