From 4a61ef5cd6d50fc839901de9886641a7b96671fc Mon Sep 17 00:00:00 2001 From: Tarjei Huse Date: Fri, 17 Feb 2012 22:36:55 +0100 Subject: [PATCH 1/2] Improve documentation --- wise-editor/doc/ConfigParameters.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wise-editor/doc/ConfigParameters.md b/wise-editor/doc/ConfigParameters.md index 78964e8e..d11bd7ef 100644 --- a/wise-editor/doc/ConfigParameters.md +++ b/wise-editor/doc/ConfigParameters.md @@ -25,7 +25,7 @@ An example config may look like this:: The options are: * readOnly: Set to true if the viewer should not be able to edit the map. -* zoom: how much the map should be zoomed. +* zoom: how much the map should be zoomed. Range: 0.3 - 1.9. 0.3 = largest text. * size: size of the map area. * viewPort: set this to the same as the size * persistenceManager: Classname of a class that extends mindplot.PersistenceManager (see ImplementingPersistence for more info.) From e5891636b35fb89f5481843c6c2161faf1595111 Mon Sep 17 00:00:00 2001 From: Tarjei Huse Date: Wed, 14 Mar 2012 20:34:29 +0100 Subject: [PATCH 2/2] Change mousewheel handling so we let the default event happen if we are outside the container. --- mindplot/src/main/javascript/Designer.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mindplot/src/main/javascript/Designer.js b/mindplot/src/main/javascript/Designer.js index b1bb69f4..25c5b489 100644 --- a/mindplot/src/main/javascript/Designer.js +++ b/mindplot/src/main/javascript/Designer.js @@ -109,6 +109,16 @@ mindplot.Designer = new Class({ $(document).addEvent('mousewheel', function(event) { + var containerCoords = screenManager.getContainer().getCoordinates(); + if (event.client.y < containerCoords.top || + event.client.y > containerCoords.bottom || + event.client.x < containerCoords.left || + event.client.x > containerCoords.right + ) { + return true; + } + + event.preventDefault(); if (event.wheel > 0) { this.zoomIn(1.05); }