We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 979317c + fa7bc9d commit f851cadCopy full SHA for f851cad
src/howler.core.js
@@ -1362,16 +1362,16 @@
1362
lastTick = Date.now();
1363
vol += diff * tick;
1364
1365
+ // Round to within 2 decimal points.
1366
+ vol = Math.round(vol * 100) / 100;
1367
+
1368
// Make sure the volume is in the right bounds.
1369
if (diff < 0) {
1370
vol = Math.max(to, vol);
1371
} else {
1372
vol = Math.min(to, vol);
1373
}
1374
- // Round to within 2 decimal points.
- vol = Math.round(vol * 100) / 100;
-
1375
// Change the volume.
1376
if (self._webAudio) {
1377
sound._volume = vol;
0 commit comments