minor cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-01-27 03:44:45 +04:00
parent 36e2a53a4d
commit faab8dc06e
2 changed files with 7 additions and 6 deletions

View File

@ -1,5 +1,6 @@
/*********************************************************************/
/*********************************************************************/
/**********************************************************************
*
**********************************************************************/
body {
padding: 0;

View File

@ -132,16 +132,16 @@ function swipeHandler(evt, phase, direction, distance, duration, fingers){
mag.css({left: -n*cur.width()+distance/scale})
}
} else if(phase == 'start') {
} else if(phase == 'start'){
togglePageDragging('on')
mag.addClass('unanimated')
} else if(phase == 'cancel') {
} else if(phase == 'cancel'){
togglePageDragging('off')
setCurrentPage()
mag.removeClass('unanimated')
} else if(phase =='end' ) {
} else if(phase =='end' ){
togglePageDragging('off')
mag.removeClass('unanimated')
// 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())
// prev page...
if(direction == 'right') {
if(direction == 'right'){
// two+ fingers moves to closest article...
if(fingers >= 2){
prevArticle()