mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-29 19:20:09 +00:00
minor fixes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
b5da226ccd
commit
d2633e48b2
@ -206,6 +206,8 @@ var MIN_STEP = 0
|
|||||||
// XXX make this a drop-in replacement for setElementTransform...
|
// XXX make this a drop-in replacement for setElementTransform...
|
||||||
// XXX cleanup, still flacky...
|
// XXX cleanup, still flacky...
|
||||||
function animateElementTo(elem, to, duration, easing, speed){
|
function animateElementTo(elem, to, duration, easing, speed){
|
||||||
|
// stop all ongoing animations on the current elem...
|
||||||
|
stopAnimation(elem)
|
||||||
// use transition for animation...
|
// use transition for animation...
|
||||||
if(USE_TRANSITIONS_FOR_ANIMATION){
|
if(USE_TRANSITIONS_FOR_ANIMATION){
|
||||||
setTransitionEasing(elem, easing)
|
setTransitionEasing(elem, easing)
|
||||||
@ -371,7 +373,7 @@ function getMagazineOffset(page, scale, align){
|
|||||||
|
|
||||||
|
|
||||||
function getPageNumber(page){
|
function getPageNumber(page){
|
||||||
// a page is given explicitly, get the next one...
|
// a page/element is given explicitly...
|
||||||
if(page != null){
|
if(page != null){
|
||||||
page = $(page)
|
page = $(page)
|
||||||
if(!page.hasClass('page')){
|
if(!page.hasClass('page')){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user