mirror of
				https://github.com/flynx/PortableMag.git
				synced 2025-10-31 20:10:13 +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 { | ||||
| 	padding: 0; | ||||
|  | ||||
| @ -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() | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user