eventThrottle([ms])

Class: SwingUI.

Description:

Gets or sets the event throttle interval for high-frequency events, like mouse motion or resizing. Value is in milliseconds, so 100 means no more than 10 same type of events per component per second.
Applies only to some high frequency events, such as resizing and moving.

Parameters:

Name Type Description

[ms]

number

Minimum amount of time (in milliseconds) between same type of events per component.

Returns:

When setting arguments, this instance of SwingUI is returned, otherwise current value is returned.

Type: SwingUI | number

Examples:

Setting and getting examples:

ui.eventThrottle(10); // Sets new value
console.debug(ui.eventThrottle()); // prints current value