Skip to content

Commit

Permalink
Correct type of zoomSpeed
Browse files Browse the repository at this point in the history
`zoomSpeed` is introduced for configurable manual zoom speed and the
type of value is `number` as described in [1].

However, it should be an array of `number` if it is used with
Configurator class, or an error is occured in _handleObject().
This update is to correct the type of zoomSpeed and fix visjs-community#37.

[1] almende/vis#3657
  • Loading branch information
geminoa committed Sep 21, 2018
1 parent 9b6f6cb commit e969f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/network/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ let configureOptions = {
hoverConnectedEdges: true,
tooltipDelay: [300, 0, 1000, 25],
zoomView: true,
zoomSpeed: 1
zoomSpeed: [1, 1, 1, 1]
},
manipulation: {
enabled: false,
Expand Down

0 comments on commit e969f3b

Please sign in to comment.