bug fixed

This commit is contained in:
Luis Fernando Molina committed 2020-02-28 19:25:57 +01:00
1 parent fba71490a8
commit aef98c8a93
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -548,7 +548,7 @@ function newCanvas () {
/* We check if the mouse is over a panel/ */
container = thisObject.panelsSpace.getContainer(point)
container = thisObject.panelsSpace.getContainer(point, GET_CONTAINER_PURPOSE.DRAGGING)
if (container !== undefined && event.shiftKey === false) {
if (container.isDraggeable === true) {
@@ -645,7 +645,7 @@ function newCanvas () {
/* We check if the mouse is over a panel/ */
container = thisObject.panelsSpace.getContainer(point)
container = thisObject.panelsSpace.getContainer(point, GET_CONTAINER_PURPOSE.MOUSE_CLICK)
if (container !== undefined && container.isClickeable === true) {
container.eventHandler.raiseEvent('onMouseClick', point)
+1 -1
View File
@@ -272,7 +272,7 @@ function newLayersPanel () {
checkPoint = thisObject.fitFunction(checkPoint)
if (point.x === checkPoint.x && point.y === checkPoint.y) {
if (container.isForThisPurpose(purpose)) {
if (purpose !== GET_CONTAINER_PURPOSE.MOUSE_OVER) {
return container
}
}