mirror of
https://github.com/flynx/PortableMag.git
synced 2025-11-01 12:30:19 +00:00
minor cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
36e2a53a4d
commit
faab8dc06e
@ -1,5 +1,6 @@
|
|||||||
/*********************************************************************/
|
/**********************************************************************
|
||||||
/*********************************************************************/
|
*
|
||||||
|
**********************************************************************/
|
||||||
|
|
||||||
body {
|
body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|||||||
@ -132,16 +132,16 @@ function swipeHandler(evt, phase, direction, distance, duration, fingers){
|
|||||||
mag.css({left: -n*cur.width()+distance/scale})
|
mag.css({left: -n*cur.width()+distance/scale})
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if(phase == 'start') {
|
} else if(phase == 'start'){
|
||||||
togglePageDragging('on')
|
togglePageDragging('on')
|
||||||
mag.addClass('unanimated')
|
mag.addClass('unanimated')
|
||||||
|
|
||||||
} else if(phase == 'cancel') {
|
} else if(phase == 'cancel'){
|
||||||
togglePageDragging('off')
|
togglePageDragging('off')
|
||||||
setCurrentPage()
|
setCurrentPage()
|
||||||
mag.removeClass('unanimated')
|
mag.removeClass('unanimated')
|
||||||
|
|
||||||
} else if(phase =='end' ) {
|
} else if(phase =='end' ){
|
||||||
togglePageDragging('off')
|
togglePageDragging('off')
|
||||||
mag.removeClass('unanimated')
|
mag.removeClass('unanimated')
|
||||||
// see which page is closer to the middle of the screen and set it...
|
// see which page is closer to the middle of the screen and set it...
|
||||||
@ -149,7 +149,7 @@ function swipeHandler(evt, phase, direction, distance, duration, fingers){
|
|||||||
var p = Math.ceil((distance/scale)/cur.width())
|
var p = Math.ceil((distance/scale)/cur.width())
|
||||||
|
|
||||||
// prev page...
|
// prev page...
|
||||||
if(direction == 'right') {
|
if(direction == 'right'){
|
||||||
// two+ fingers moves to closest article...
|
// two+ fingers moves to closest article...
|
||||||
if(fingers >= 2){
|
if(fingers >= 2){
|
||||||
prevArticle()
|
prevArticle()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user