sasza2 / arrows

MIT License
60 stars 11 forks source link

Refresh time #35

Closed Bertus-W closed 3 years ago

Bertus-W commented 3 years ago

Hi, I wish there was an option to set the observer refresh time. I'm currently making something where you have to move boxes with lines between them. but it lags with the current set 150ms interval

sasza2 commented 3 years ago

hi, from now you can use updateDelay prop like

arrowCreate({
  [...],
  updateDelay: 50, // ms
})
Bertus-W commented 3 years ago

cool, thx for the quick fix