I seeing some weird behavior in Chrome, where after I scroll back to the top, there's a second or two where if I try to manually scroll back down, the jQuery animation seems to fight against me and keeps it at the top. This results in a jumpy/stuttery effect, where it won't let me scroll down again, until that time elapses. It seems like the animation really slows down at the end and takes its time in giving me back the control. In Firefox it is similar, but without the stuttery effect (Firefox just doesn't register manual scrolling until after the animation is completely finished).

It alleviates the problem if I increase the speed of the animation to 200 (instead of the current 1200). I actually made it a configurable setting in the admin page. I'd be happy to post those changes as a patch if desired.

To clarify, I don't think this is a bug with this module, just weirdness with jQuery, animate, and scrolling. However it seems it can be alleviated with a faster animation speed. Is anyone else experiencing this?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Lux Delux’s picture

Just noticed this today as well. Thanks for the tip about the animation speed. Changed it to 200 in the modules js and everything works fine

semei’s picture

a patch would be great, this should definitely be commited. i experience the same issue.

semei’s picture

same issue when i chance the speed of animation from 1200 to 200, it just fixes itself faster than before.

brockfanning’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Status: Active » Needs review
FileSize
1.89 KB

Ok, here's what I had come up with. Let me know if anything doesn't work right.

brockfanning’s picture

Category: task » feature
FileSize
3.56 KB

Here's a new patch that also makes the "easing" configurable. I found that while tweaking the speed helped with the problem, removing the easing altogether pretty much solved it for me.

mjcarter’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Works as described. Doesn't fix the root of the issue but the configuration options are a nice and useful addition and can mitigate or work around the issue.

acke’s picture

I think I fixed the root of the problem with a bind / unbind. It's committed and pushed to HEAD/7.x-dev and going into 1.4.

Making the speed and animation type configurable is also a good idea. But maybe more or all easing type should be included (http://jqueryui.com/resources/demos/effect/easing.html)?

acke’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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