mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-28 10:40:07 +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(){
|
||||
func(Date.now())
|
||||
getAnimationFrame(next)
|
||||
frame = getAnimationFrame(next)
|
||||
}
|
||||
|
||||
// main user interface...
|
||||
@ -432,7 +432,7 @@ function animationFrameRunner(func){
|
||||
// start things up...
|
||||
// NOTE: we are not calling _tick here directly to avoid stray,
|
||||
// off-frame call to func...
|
||||
getAnimationFrame(next)
|
||||
frame = getAnimationFrame(next)
|
||||
|
||||
return this
|
||||
}
|
||||
@ -454,6 +454,7 @@ function animationFrameRunner(func){
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
// NOTE: this is exclusive, e.g. all other animations set with this will
|
||||
// be stopped on call...
|
||||
// XXX for some reason this is slower that animateElementTo(..) on iPad...
|
||||
@ -575,6 +576,7 @@ function stopAnimation2(elem){
|
||||
runner.stop()
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
// XXX make this a drop-in replacement for setElementTransform...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user