Experience-Monks / f1-dom

Create f1 ui with the dom
MIT License
12 stars 4 forks source link

Uncaught RangeError when scaling an object #14

Open marcod1419 opened 8 years ago

marcod1419 commented 8 years ago

In some cases, scaling an object a certain way will cause the following error to appear:

Uncaught RangeError: toFixed() digits argument must be between 0 and 20

This seems to be related to the conversion from scientific notation done in getTransformMatrix.js. Here is a repo you can clone that will easily replicate the issue: https://github.com/marcod1419/marcos-f1-test-case

Simply keep clicking on the "Volt Switch" button as fast as you can until the error appears in the console.