Freeze/Unfreeze Issues #52

Open
sjs opened this Issue Dec 21, 2012 · 1 comment

2 participants

@sjs

Unfreeze doesn't work unless you set all arguments for both freeze and unfreeze

This produces the expected results, though nothing is done with the x or y arguments when unfreezing. Only the type and the decay arguments work for the unfreezing

$('.parallax-layer').trigger({type:'freeze', x: 0.9, y: 0.9, decay:0.25});
$('.parallax-layer').trigger({type:'unfreeze', x: 0.9, y: 0.9, decay:0.75});

This following examples show the error. Unfreezing is not accomplished, and the parallax effect never returns:

$('.parallax-layer').trigger({type:'freeze', x: 0.9, y: 0.9, decay:0.1});
$('.parallax-layer').trigger({type:'unfreeze'});
$('.parallax-layer').trigger({type:'freeze', x: 0.9, y: 0.9, decay:0.1});
$('.parallax-layer').trigger('unfreeze');
$('.parallax-layer').trigger({type:'freeze', x: 0.9, y: 0.9});
$('.parallax-layer').trigger({type:'unfreeze', x: 0.9, y: 0.9});
$('.parallax-layer').trigger({type:'freeze', x: 0.9, y: 0.9});
$('.parallax-layer').trigger({type:'unfreeze'});
@joshmatz

I used the minified version and got positioning problems in IE and Opera. When I brought in the unminified code, this freeze issue popped up, whereas with the minified version I didn't have the problem.

sjs's workaround works for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment