beaufortfrancois / sandbox

:baby_chick:
MIT License
72 stars 32 forks source link

Consider using `Math.round(step * 100) / 100` #14

Closed yell0wd0g closed 7 years ago

yell0wd0g commented 7 years ago

Consider using Math.round(step * 100) / 100 to throw away the (potentially many) decimals coming out of a MediaSettingsRange.step (re. https://crbug.com/723249 bug)

e.g. in line: https://github.com/beaufortfrancois/sandbox/blob/gh-pages/image-capture/playground.html#L199

beaufortfrancois commented 7 years ago

Fixed in https://github.com/beaufortfrancois/sandbox/commit/95a9d71211b8a53ec687240352145624b9a97919 Thank you!