Extension dialog can remain stuck in drag mode after mouse release
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3584891. -->
Reported by: [lauriii](https://www.drupal.org/user/1078742)
Related to !918
>>>
<h3 id="overview">Overview</h3>
<p>When dragging an extension dialog in Canvas, the dialog can sometimes continue following mouse movement even after the mouse button is released. This leaves the dialog in a stuck dragging state and makes normal interaction difficult until the state resets.</p>
<p><strong>Steps to reproduce:</strong></p>
<ol>
<li>Install the "Drupal Canvas Test Extension" module</li>
<li>Open the test extension.</li>
<li>Press and hold the <strong>right mouse button</strong> on the extension and move the mouse.</li>
<li>Release the right mouse button.</li>
<li>Move the mouse again. Confirm that the extension did not stop dragging.</li>
</ol>
<h3 id="proposed-resolution">Proposed resolution</h3>
<p>Ensure extension dialogs always stop dragging immediately when pointer/mouse release occurs.</p>
<h3 id="ui-changes">User interface changes</h3>
issue