Merge pull request #158 from Superalgos/develop

Bug Fixed
This commit is contained in:
Luis Fernando Molina authored and GitHub committed 2020-02-28 19:27:05 +01:00
commit b324fc5dc3
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
}
}