Merge commit 'refs/merge-requests/3' of repo.wisemapping.org:wisemapping/wiseorg into merge-requests/3

This commit is contained in:
Paulo Gustavo Veiga 2012-03-14 23:30:38 -03:00
commit 699fda21d2
2 changed files with 11 additions and 1 deletions

View File

@ -118,6 +118,16 @@ mindplot.Designer = new Class({
$(document).addEvent('mousewheel', function(event) { $(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) { if (event.wheel > 0) {
this.zoomIn(1.05); this.zoomIn(1.05);
} }

View File

@ -25,7 +25,7 @@ An example config may look like this::
The options are: The options are:
* readOnly: Set to true if the viewer should not be able to edit the map. * 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. * size: size of the map area.
* viewPort: set this to the same as the size * viewPort: set this to the same as the size
* persistenceManager: Classname of a class that extends mindplot.PersistenceManager (see ImplementingPersistence for more info.) * persistenceManager: Classname of a class that extends mindplot.PersistenceManager (see ImplementingPersistence for more info.)