Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freeze Event Only Works Once Cursor Has Left Viewport #64

Open
cainhill opened this issue May 21, 2013 · 0 comments
Open

Freeze Event Only Works Once Cursor Has Left Viewport #64

cainhill opened this issue May 21, 2013 · 0 comments

Comments

@cainhill
Copy link

Problem

Error when trying to call the "freeze" feature of jParallax, instead of the freeze applying to the layer instantly, the freeze only takes effect after the cursor has left the viewport.

Work done

  • Local testing: To remove any issues, I've downloaded the exact same JavaScript dependencies to my local site as what is referenced on the demo site (http://stephband.info/jparallax/) and tried to call the .trigger( "freeze" ) event from within the code, as well as from the web console, but it only "activates" once I move my cursor outside of the viewport.
  • Demo-site testing: Tested further by using Firefox on the demo site (http://stephband.info/jparallax/) and the web console to trigger $( ".parallax-layer" ).trigger( "freeze" ) while mouse inside the viewport, same error, the freeze will fail unless the cursor leaves the viewport.

When does it work?

  • However, strangely, if you take the tip from issue Freeze/Unfreeze Issues #52 the freeze is instant.
  • Just tested it in Google Chrome and the freeze is instant as expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant