bug fixed
This commit is contained in:
1 parent
fba71490a8
commit
aef98c8a93
2 files changed
+3
-3
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user