Merge remote-tracking branch 'origin/develop'
Conflicts: core-js/pom.xml mindplot/pom.xml pom.xml web2d/pom.xml wise-editor/pom.xml wise-webapp/pom.xml
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<groupId>org.wisemapping</groupId>
|
||||
<artifactId>wisemapping</artifactId>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
<version>4.0.2</version>
|
||||
<version>4.0.3</version>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
|
@@ -82,32 +82,14 @@ mindplot.Designer = new Class(/** @lends Designer */{
|
||||
* @private
|
||||
*/
|
||||
_registerWheelEvents: function () {
|
||||
var workspace = this._workspace;
|
||||
var zoomFactor = 1.006;
|
||||
var me = this;
|
||||
// Zoom In and Zoom Out must active event
|
||||
$(document).on('mousewheel', function (event) {
|
||||
// Change mousewheel handling so we let the default
|
||||
// event happen if we are outside the container. -> FIXME: it still happening?
|
||||
/*var coords = screenManager.getContainer().getCoordinates();
|
||||
var isOutsideContainer = event.client.y < coords.top ||
|
||||
event.client.y > coords.bottom ||
|
||||
event.client.x < coords.left ||
|
||||
event.client.x > coords.right;
|
||||
|
||||
if (!isOutsideContainer) {
|
||||
if (event.wheel > 0) {
|
||||
this.zoomIn(1.05);
|
||||
}
|
||||
else {
|
||||
this.zoomOut(1.05);
|
||||
}
|
||||
event.preventDefault();
|
||||
}*/
|
||||
if (event.deltaY > 0) {
|
||||
me.zoomIn(1.05);
|
||||
}
|
||||
else {
|
||||
me.zoomOut(1.05);
|
||||
me.zoomIn(zoomFactor);
|
||||
} else {
|
||||
me.zoomOut(zoomFactor);
|
||||
}
|
||||
event.preventDefault();
|
||||
});
|
||||
|
File diff suppressed because one or more lines are too long
@@ -63,6 +63,9 @@ mindplot.widget.LinkEditor = new Class(/** @lends LinkEditor */{
|
||||
'autofocus': 'autofocus',
|
||||
'class': 'form-control'
|
||||
});
|
||||
input.on("keypress", function(event) {
|
||||
event.stopPropagation();
|
||||
});
|
||||
|
||||
if (model.getValue() != null){
|
||||
input.val(model.getValue());
|
||||
|
Reference in New Issue
Block a user