#1 (permalink)  
Old 05-26-2008, 06:17 AM
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
Reply With Quote
  #2 (permalink)  
Old 05-26-2008, 09:32 AM
Super Moderator
 
Join Date: May 2008
Posts: 519
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.
Reply With Quote
Reply

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


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.