Hi!

There are times that the Power Scrolling (Up/Down) messes up during 'ahah occurrences' (I'm not really sure what the right term to use, sorry). Say I edit a view and click on a field, the scroller would go way at the bottom. I had 2 workarounds for this:

Replace Drupal.behaviors.scroller = function () { ... } with the simple $(function() { ... }) since I think Drupal.behaviors rebinds the event so to affect any newly created elements after an Ajax call is completed.

Or a few changes under Drupal.behaviors.scroller:

$(window).filter(function() { return !$(this).data('scroll-processed'); }).data('scroll-processed', true).scroll(function () { ... }) and $('a[href*=#]:not(.scroll-processed)').addClass('scroll-processed').click(function() { ... })

Hope this helps.

Comments

danielhonrade’s picture

Thank you for solving this problem, I'll commit the first one, it's a lot more simple :D

danielhonrade’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.