jparallax icon indicating copy to clipboard operation
jparallax copied to clipboard

Freeze/Unfreeze Issues

Open sjs opened this issue 11 years ago • 1 comments

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'});

sjs avatar Dec 21 '12 22:12 sjs

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!

joshmatz avatar Jan 10 '13 16:01 joshmatz