Merge commit 'refs/merge-requests/3' of repo.wisemapping.org:wisemapping/wiseorg into merge-requests/3
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user