Dragging a component from the component tree to the canvas sometimes does not work as expected without clicking on it first and then dragging it

This commit is contained in:
Bane Stojkovic
2026-06-05 21:38:25 +02:00
parent 140c052d39
commit f481542d5a
2 changed files with 7 additions and 4 deletions
@@ -2491,10 +2491,9 @@ public class Presenter implements IPlugInPort {
return;
}
// if (componentType == null) {
// controlPointMap.clear();
// updateSelection(EMPTY_SELECTION);
// }
if (controlPointMap != null) {
controlPointMap.clear();
}
// try to find a default template if none is provided
if (componentType != null && template == null) {
@@ -389,6 +389,10 @@
<changeType>NEW_FEATURE</changeType>
<description>IEC variations of fuse and potentiometer symbols</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType>
<description>Dragging a component from the component tree to the canvas sometimes does not work as expected without clicking on it first and then dragging it</description>
</org.diylc.appframework.update.Change>
</changes>
<url>https://github.com/bancika/diy-layout-creator/releases</url>
</org.diylc.appframework.update.Version>