Old 05-26-2008, 06:17 AM   #1 (permalink)
Junior Member
 
Join Date: May 2008
Posts: 1
Default Scroll Speed Control

Hi,

Is there a way to control the speed of the scrolling on the Image vertical menu?

It's ok when you have low items but when you have 100+ items it scrolls too fast.

Please advise on a way to control the speed of the vertical scrolling speed.

Kind regards

Pureoption
pureoption is offline   Reply With Quote
Old 05-26-2008, 09:32 AM   #2 (permalink)
OYXLUSFlash.com Staff Member
 
Adrian's Avatar
 
Join Date: May 2008
Posts: 1,981
Send a message via Yahoo to Adrian Send a message via Skype™ to Adrian
Default

Hello,
The Image VM has certain limitations when it comes to a large number of items and a small viewport. The viewport is the rectangular area (mask) that shows parts of the list when you move your mouse. Open ScrollingList.as file Here search for a block of code like:

Code:
Lst.onEnterFrame = function() {
	if (Math.abs(this._y-ypos)<1) {
		delete this.onEnterFrame;
		this._y = ypos;
	}
	this._y += (ypos-this._y)/6;
};
You could alter the "6" value to a higher value for a "slower" movement. Actually that value represents the number of steps it takes for the list to scroll to a new position according to the mouse y position. Try tweaking that value, and also if it's possible, enlarge the height of the viewport.
Adrian is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:24 PM.