Merge branch 'develop' of https://github.com/Superalgos/Superalgos into develop

This commit is contained in:
Luis Fernando Molina committed 2021-12-05 18:44:21 +01:00
commit fb93911abd
1 file changed
+7
+7
View File
@@ -910,6 +910,13 @@ function newCanvas() {
let spaceInstance = projectInstance.events.onMouseClickMap.get(j)
if (spaceInstance === undefined) { continue }
/* Side Space always gets precedence */
if (spaceInstance.definition.name === 'Side Space') {
container = spaceInstance.getContainer(point, GET_CONTAINER_PURPOSE.MOUSE_CLICK)
container.eventHandler.raiseEvent('onMouseClick', point)
return
}
if (spaceInstance.getContainer === undefined) { continue }
container = spaceInstance.getContainer(point, GET_CONTAINER_PURPOSE.MOUSE_CLICK)