mirror of
				https://github.com/flynx/PortableMag.git
				synced 2025-10-31 12:00:11 +00:00 
			
		
		
		
	some cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									949e053d86
								
							
						
					
					
						commit
						fce6ff90f2
					
				| @ -420,7 +420,7 @@ function animationFrameRunner(func){ | |||||||
| 
 | 
 | ||||||
| 	var _tick = function(){ | 	var _tick = function(){ | ||||||
| 		func(Date.now()) | 		func(Date.now()) | ||||||
| 		getAnimationFrame(next) | 		frame = getAnimationFrame(next) | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	// main user interface...
 | 	// main user interface...
 | ||||||
| @ -432,7 +432,7 @@ function animationFrameRunner(func){ | |||||||
| 		// start things up...
 | 		// start things up...
 | ||||||
| 		// NOTE: we are not calling _tick here directly to avoid stray,
 | 		// NOTE: we are not calling _tick here directly to avoid stray,
 | ||||||
| 		// 		off-frame call to func...
 | 		// 		off-frame call to func...
 | ||||||
| 		getAnimationFrame(next) | 		frame = getAnimationFrame(next) | ||||||
| 
 | 
 | ||||||
| 		return this | 		return this | ||||||
| 	} | 	} | ||||||
| @ -454,6 +454,7 @@ function animationFrameRunner(func){ | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | /* | ||||||
| // NOTE: this is exclusive, e.g. all other animations set with this will
 | // NOTE: this is exclusive, e.g. all other animations set with this will
 | ||||||
| // 		be stopped on call...
 | // 		be stopped on call...
 | ||||||
| // XXX for some reason this is slower that animateElementTo(..) on iPad...
 | // XXX for some reason this is slower that animateElementTo(..) on iPad...
 | ||||||
| @ -575,6 +576,7 @@ function stopAnimation2(elem){ | |||||||
| 		runner.stop() | 		runner.stop() | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  | */ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| // XXX make this a drop-in replacement for setElementTransform...
 | // XXX make this a drop-in replacement for setElementTransform...
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user