diff --git a/docs/network/index.html b/docs/network/index.html index 2742e3b8..cc86669f 100644 --- a/docs/network/index.html +++ b/docs/network/index.html @@ -1401,7 +1401,7 @@ var options = {
{ direction: '+'/'-', scale: Number, diff --git a/lib/network/modules/components/NavigationHandler.js b/lib/network/modules/components/NavigationHandler.js index befe3063..9d044fdc 100644 --- a/lib/network/modules/components/NavigationHandler.js +++ b/lib/network/modules/components/NavigationHandler.js @@ -160,7 +160,8 @@ class NavigationHandler { this.body.view.scale = scale; this.body.view.translation = { x: tx, y: ty }; - this.body.emitter.emit('zoom', { direction: '+', scale: this.body.view.scale, pointer: pointer }); + this.body.emitter.emit('zoom', { direction: '+', scale: this.body.view.scale, pointer: null }); + } _zoomOut() { var scaleOld = this.body.view.scale; @@ -172,7 +173,7 @@ class NavigationHandler { this.body.view.scale = scale; this.body.view.translation = { x: tx, y: ty }; - this.body.emitter.emit('zoom', { direction: '-', scale: this.body.view.scale, pointer: pointer }); + this.body.emitter.emit('zoom', { direction: '-', scale: this.body.view.scale, pointer: null }); } @@ -226,4 +227,4 @@ class NavigationHandler { } -export default NavigationHandler; \ No newline at end of file +export default NavigationHandler;