Skip to content

Commit

Permalink
fix on the drag image #734
Browse files Browse the repository at this point in the history
  • Loading branch information
umut-er committed Jul 17, 2024
1 parent 4014ca3 commit 4c745a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/js/app-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,8 @@ module.exports = function() {
$(document).on('mousedown', '.node-palette img', function (e) {
e.preventDefault(); // needed for dragging, otherwise the mouse release event cannot be fired on another element
dragAndDropPlacement = true;
var imgPath = appUtilities.getDragImagePath( $(this).attr('value') );
// var imgPath = appUtilities.getDragImagePath( $(this).attr('value') );
var imgPath = $(this).attr('src');
appUtilities.addDragImage(imgPath, $(this).css('width'), $(this).css('height'));

$('.node-palette img').removeClass('selected-mode'); // Make any image inside node palettes non selected
Expand Down

0 comments on commit 4c745a8

Please sign in to comment.