The horizontal scroll seemed to be really choppy...not smooth at all.

After beating my head on the wall, I figured out that the reason for this is that the refresh interval was set to 150 milliseconds; this is about 7 frames per second, if you will. The problem is that the human eye can detect at somewhere between a max of 24 and 120 frames per second (I can't find a solid number).

I've not noticed other issue reports for this or I'd roll a patch.

In lieu of a patch, here's what I did to address the issue:

  • Changed "150" to "10" in views.ticker.scroller.js; this increases the framerate to 100fps.
  • Replaced line 43 of views_ticker.views.inc with the following:
    $variables['speed'] = 'jscroller2_speed-' . round( $options['hscroller_Options']['hscroller_speed'] / 15);

The movement is still perceptible but it appears to be much smoother.

Comments

raghukr’s picture

Due to some reason, dev snapshots on project page are not getting updated. Try this latest commit. It should work better. Now it uses a different scroller for horizontal scrolling.

http://drupalcode.org/project/views_ticker.git/snapshot/1d711e0.tar.gz

SchwebDesign’s picture

thanks to both of you. I came with this same need and implemented http://drupalcode.org/project/views_ticker.git/snapshot/1d711e0.tar.gz
This is certainly an improvement- thanks for updating to this!

raghukr’s picture

Status: Active » Closed (fixed)

Glad that it helped!