throttle


Type: {Number}

Default: 50


Sets the minimum interval in milliseconds to wait before another resize or scroll callback is invoked.


In order to accurately select the items with the lasso, the coordinates of each item has to be calculated based on the containers scroll position and size. These coordinates are updated and cached every time the container is resized or scrolled. Because resizing and scrolling callbacks are fired every few milliseconds, this can have a performance hit in some cases. Selectable can throttle these callbacks so they only fire after the set interval defined by the throttle setting. Higher values can increase performance on low-end devices, but can have the effect of delaying selection during auto-scrolling.


Last updated