mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #2295 from kazuhitoyokoi/dev-fixnodedraggablehandling
Fix draggable handling in palette
This commit is contained in:
commit
ec876eb102
@ -298,7 +298,8 @@ RED.palette = (function() {
|
|||||||
},
|
},
|
||||||
stop: function() { d3.select('.red-ui-flow-link-splice').classed('red-ui-flow-link-splice',false); if (spliceTimer) { clearTimeout(spliceTimer); spliceTimer = null;}},
|
stop: function() { d3.select('.red-ui-flow-link-splice').classed('red-ui-flow-link-splice',false); if (spliceTimer) { clearTimeout(spliceTimer); spliceTimer = null;}},
|
||||||
drag: function(e,ui) {
|
drag: function(e,ui) {
|
||||||
ui.originalPosition.left = $('#' + e.target.id).offset().left;
|
var paletteNode = getPaletteNode(nt);
|
||||||
|
ui.originalPosition.left = paletteNode.offset().left;
|
||||||
|
|
||||||
if (def.inputs > 0 && def.outputs > 0) {
|
if (def.inputs > 0 && def.outputs > 0) {
|
||||||
mouseX = ui.position.left - paletteWidth + (ui.helper.width()/2) + chart.scrollLeft();
|
mouseX = ui.position.left - paletteWidth + (ui.helper.width()/2) + chart.scrollLeft();
|
||||||
|
Loading…
Reference in New Issue
Block a user