From e969f3bdede53c45565fdadf7e28fe48d984e5dd Mon Sep 17 00:00:00 2001 From: geminoa Date: Fri, 21 Sep 2018 23:03:28 +0900 Subject: [PATCH] Correct type of zoomSpeed `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 #37. [1] https://github.com/almende/vis/pull/3657 --- lib/network/options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/network/options.js b/lib/network/options.js index 880c13b..0137155 100644 --- a/lib/network/options.js +++ b/lib/network/options.js @@ -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,