@kieler/klighd-interactive
Advanced tools
Comparing version 0.3.0-next.ff4a31b to 0.4.0-next.775496f
@@ -158,5 +158,3 @@ "use strict"; | ||
this.target = undefined; | ||
// Appends a RefreshDiagramAction to the result. This fixes a bug | ||
// where the interaction is only applied after the dragged node is | ||
// clicked again, causing the second if case in this method to execute. | ||
// Refresh the diagram according to the moved elements. | ||
if (result.some(function (action) { return action.kind === actions_1.RefreshDiagramAction.KIND; })) { | ||
@@ -171,3 +169,3 @@ return result; | ||
this.target.selected = false; | ||
var result = _super.prototype.mouseUp.call(this, this.target, event).concat([actions_1.RefreshDiagramAction.create()]); | ||
var result = _super.prototype.mouseUp.call(this, this.target, event); | ||
this.target = undefined; | ||
@@ -174,0 +172,0 @@ return result; |
{ | ||
"name": "@kieler/klighd-interactive", | ||
"version": "0.3.0-next.ff4a31b", | ||
"version": "0.4.0-next.775496f", | ||
"description": "A module for klighd-core to interactively apply constraints to the diagram", | ||
@@ -5,0 +5,0 @@ "author": "Kiel University <rt-kieler-devel@informatik.uni-kiel.de>", |
@@ -144,5 +144,3 @@ /* | ||
// Appends a RefreshDiagramAction to the result. This fixes a bug | ||
// where the interaction is only applied after the dragged node is | ||
// clicked again, causing the second if case in this method to execute. | ||
// Refresh the diagram according to the moved elements. | ||
if (result.some(action => action.kind === RefreshDiagramAction.KIND)) { | ||
@@ -155,3 +153,3 @@ return result | ||
this.target.selected = false | ||
const result = super.mouseUp(this.target, event).concat([RefreshDiagramAction.create()]); | ||
const result = super.mouseUp(this.target, event); | ||
this.target = undefined | ||
@@ -158,0 +156,0 @@ return result |
Sorry, the diff of this file is not supported yet
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
227263
3921