remove throttle.js since its not used at all

This commit is contained in:
Ulf Gebhardt 2021-10-16 15:14:18 +02:00
parent 0551a8c1b1
commit 97a4379527
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -1,15 +0,0 @@
/**
* Simple throttle function that executes a passed function only once in the specified timeout
* @param handlerFunc
* @param [timeout] the throttle interval
*/
export function throttle(handlerFunc, timeout = 66) {
let resizeTimeout
if (!resizeTimeout) {
resizeTimeout = setTimeout(() => {
resizeTimeout = null
handlerFunc()
// The actualResizeHandler will execute at a rate of 15fps
}, timeout)
}
}