tweenjs / es6-tween

ES6 version of tween.js
MIT License
186 stars 34 forks source link

Not working in Electron #45

Closed Avocher closed 6 years ago

Avocher commented 6 years ago

Issue

Issue name

es6-tween relies on process.hrtime if available, which seems to work unexpectedly(?) in Electron.

Issue description

Animations doesn't progress in Electron.

Related

This issue is related to

dalisoft commented 6 years ago

Hi @Avocher Thanks for using our library Do you called TWEEN.autoPlay(true)?

Avocher commented 6 years ago

Yes, I tried both autoPlay and calling update. Setting process.hrtime = undefined makes the code work.

dalisoft commented 6 years ago

There can you reference some similar issues from Electron? I there can't find way of check Electron bug. PR are welcome and would be helpful

dalisoft commented 6 years ago

@Avocher is your issue fixed?

Avocher commented 6 years ago

Finally had the time to try it out and it works. Thank you!

dalisoft commented 6 years ago

Thank you for catching this bug