mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-28 10:40:07 +00:00
some fixes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d512d8d082
commit
02b0c304a7
@ -479,14 +479,16 @@ function animateElementTo2(elem, to, duration, easing, speed, use_transitions){
|
||||
// do var caching...
|
||||
var to_top = to.top
|
||||
var to_left = to.left
|
||||
var speen_x = speed.x
|
||||
var speen_y = speed.y
|
||||
var from_top = from.top
|
||||
var from_left = from.left
|
||||
var cur_top = from_top
|
||||
var cur_left = form_left
|
||||
var cur_left = from_left
|
||||
var dist_top = to_top - from_top
|
||||
var dist_left = to_left - from_left
|
||||
if(speed != null){
|
||||
var speed_x = speed.x
|
||||
var speed_y = speed.y
|
||||
}
|
||||
|
||||
var runner = animationFrameRunner(function(){
|
||||
var t = Date.now()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user