vaheqelyan / svelte-grid

A responsive, draggable and resizable grid layout, for Svelte.
https://svelte-grid.now.sh/
MIT License
948 stars 57 forks source link

Inicial value of 'lastTime' in throttle function is correct? #129

Open Lucas32-dev opened 1 year ago

Lucas32-dev commented 1 year ago

Captura de tela 2022-07-12 104630 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()?