Check for array for speed options (fixes #252)

This commit is contained in:
Sam Potts
2018-03-22 00:33:14 +11:00
parent 05b8e8a6e0
commit 17041efc71
9 changed files with 13 additions and 11 deletions

2
src/js/controls.js vendored
View File

@ -708,7 +708,7 @@ const controls = {
const type = 'speed';
// Set the default speeds
if (!utils.is.object(this.options.speed) || !Object.keys(this.options.speed).length) {
if (!utils.is.array(this.options.speed) || !this.options.speed.length) {
this.options.speed = [
0.5,
0.75,