You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for plugin. The bug I described in summary. My suggestion is just to add
$(window).resize event which would call unstick method on node and after
timeout scrool. I did like that and it fixes problem.
Original issue reported on code.google.com by [email protected] on 9 Apr 2013 at 8:55
The text was updated successfully, but these errors were encountered:
What I did I just added resize handler to plugin init function like that
$(window).resize(function(){
methods.unstick(options.element);
Em.run.next(methods,function(){this.scroll(options.element);});//call resize to remove add fix
});
Em.run.next - is just some kind js timeout method to call function on next
rool-up. It should be called in methods context though - inside of function
this==methods.
And in scrool I changed this:
var node = event.data.selected;
to this:
var node = (event.originalEvent)?event.data.selected:event;//call from resize to remove resize bug
And as you see I needed to add reference to element for scooling to options
(options.element).
That's my dirty workaround. But it works as expected.
Original issue reported on code.google.com by
[email protected]
on 9 Apr 2013 at 8:55The text was updated successfully, but these errors were encountered: