mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-31 20:10:13 +00:00
fixed a bug with finger/touch count detection...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
0bbb0aeb6b
commit
48b1793592
@ -112,8 +112,8 @@ function makeSwipeHandler(actionA, actionB){
|
|||||||
//setTransitionEasing(mag, 'ease-out')
|
//setTransitionEasing(mag, 'ease-out')
|
||||||
setTransitionEasing(mag, 'cubic-bezier(0.33,0.66,0.66,1)')
|
setTransitionEasing(mag, 'cubic-bezier(0.33,0.66,0.66,1)')
|
||||||
|
|
||||||
if(data.fingers == 2){
|
if(data.touches >= 2){
|
||||||
actionA($('.current.page'))
|
actionB($('.current.page'))
|
||||||
} else {
|
} else {
|
||||||
actionA($('.current.page'))
|
actionA($('.current.page'))
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user