svelte-grid
svelte-grid copied to clipboard
Inicial value of 'lastTime' in throttle function is correct?
The first time throttle function is called will probably ignore the time frame value, due to the immense expression value (now - last Time), because now is a 10 digit number and lastTime is zero. Shouldn't lastTime be inicialized as a new Date()?