Closed (fixed)
Project:
Views Ticker
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Jun 2011 at 23:15 UTC
Updated:
21 Jul 2011 at 22:27 UTC
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:
$variables['speed'] = 'jscroller2_speed-' . round( $options['hscroller_Options']['hscroller_speed'] / 15);
The movement is still perceptible but it appears to be much smoother.
Comments
Comment #1
raghukr commentedDue 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
Comment #2
SchwebDesign commentedthanks 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!
Comment #3
raghukr commentedGlad that it helped!