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
2 changed files with 11 additions and 1 deletions

View File

@@ -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);
}