plax icon indicating copy to clipboard operation
plax copied to clipboard

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

Open lsei opened this issue 11 years ago • 1 comments

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

lsei avatar Jun 06 '14 10:06 lsei

hey thanks, just saved my life :D

pakman198 avatar Oct 13 '14 17:10 pakman198