[BUG] Node Editor: Nodes are stuck and cannot be dragged/moved in v4.0.0

Hi Daniele,

Hope you are having a great week!

While working with the new 4.0.2 release, we noticed a UI regression specifically inside the Node Editor. The drag-and-drop functionality for positioning elements seems to be completely broken.

The Issue: When we insert elements into the Node Editor screen, they are stuck in their original created positions.

  • When hovering over an element, the “move” cursor (the four-way arrows) appears correctly.
  • However, clicking and dragging the element does absolutely nothing; the node won’t move.
  • If we click outside the element and drag, the entire canvas pans normally, but the individual elements remain locked in place.

This positioning feature worked perfectly back in the v3.x branch.

To make it easier for you to see exactly what is happening, I recorded a quick screencast showing the behavior: :backhand_index_pointing_right: Video: BUG Node Editor - Bricksforge

It feels like a JavaScript event listener for the drag action might have been detached or there is a layer overlay issue in the new v4 UI.

Let me know if you need me to test any hotfixes!

Best regards,

Jayron Castro
CEO, Kstros.com

yes true

Hi Jayron,

sorry for the long silence on this one. I went through the drag code and can’t confirm the cause yet, so I need some details from you.

The Node Editor code is unchanged since 3.1.8.10, and on paper the drag logic is intact. Since dragging and panning use different events, the mouse events on the node seem to get lost, or the drag stops right at the start. So far I can’t tell why from the code alone. With two users affected, I’m taking it seriously.

Could you please tell me your Bricks version, browser and any other builder add-ons you use? Please also let me know whether all nodes are affected, including on a new, empty canvas, and whether you’re grabbing the node by its title bar. The controls area of a node is intentionally not draggable.

Then please open the browser console in the builder and run this:

document.querySelector(‘.brf-node-editor-container’).classList.contains(‘panzoom-exclude’)

If it returns true, press and release the Shift key once and try dragging again. That class is added while Shift is held, and if the key release gets lost, it blocks dragging for all nodes while panning still works. In that case, a page reload would also clear it.

If it returns false, please run this line, drag a node by its title bar and send me what appears:

[‘pointerdown’,‘mousedown’,‘mousemove’].forEach(t => window.addEventListener(t, e => console.log(t, e.defaultPrevented, e.target), true))

Best,
Daniele