mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-25 23:44:54 +01:00
Merge commit 'refs/merge-requests/3' of repo.wisemapping.org:wisemapping/wiseorg into merge-requests/3
This commit is contained in:
commit
699fda21d2
@ -118,6 +118,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);
|
||||
}
|
||||
|
@ -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.)
|
||||
|
Loading…
Reference in New Issue
Block a user