ScrollBar.WheelScrollSpeed

Syntax

WheelScrollSpeed: Number;

Description

The WheelScrollSpeed property determines scroll wheel speed.

Comments

Use JSON or the setWheelScrollSpeed method to set the property value and the getWheelScrollSpeed method to get the property value.

The value is set in percents from total length.

Example

Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).

// Display scrollbar by extending title
caps = Tree.getCaptions();
caps.getCaptions()[0].setWidth(300);
caps.getCaptions()[1].setWidth(300);
// Get scrollbar
scroll = Tree.getScrollBarH();
// Set wheel scroll speed
scroll.setWheelScrollSpeed(10);

After executing the example wheel scroll speed is set.

See also:

ScrollBar