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

$.plax.disable() with non-default activity target #59

Open
lsei opened this issue Jun 6, 2014 · 1 comment
Open

$.plax.disable() with non-default activity target #59

lsei opened this issue Jun 6, 2014 · 1 comment

Comments

@lsei
Copy link

lsei commented Jun 6, 2014

The disable function seems to use the window as the mouse movement listener. I have changed this to:

disable: function(opts){
      plaxActivityTarget.unbind('mousemove.plax');
      ...

This seems to work with my setup using the following options.

$.plax.enable(
    { "activityTarget" : $('.phonecontainer') }
);
@pakman198
Copy link

hey thanks, just saved my life :D

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

2 participants