Bug fixed with tab button

This commit is contained in:
Luis Fernando Molina committed 2020-02-28 19:06:10 +01:00
1 parent 5b63ec7426
commit fba71490a8
3 files changed
+12 -16

No files matched your search

+9 -5
View File
@@ -550,11 +550,15 @@ function newCanvas () {
container = thisObject.panelsSpace.getContainer(point)
if (container !== undefined && container.isDraggeable === true && event.shiftKey === false) {
containerBeingDragged = container
containerDragStarted = true
containerBeingDragged.eventHandler.raiseEvent('onDragStarted', point)
return
if (container !== undefined && event.shiftKey === false) {
if (container.isDraggeable === true) {
containerBeingDragged = container
containerDragStarted = true
containerBeingDragged.eventHandler.raiseEvent('onDragStarted', point)
return
} else {
return
}
}
if (container !== undefined && container.isClickeable === true) {
+1 -1
View File
@@ -174,7 +174,7 @@ function newLayersPanel () {
function onMouseOver (event) {
isMouseOver = true
mouseOverCounter = 100
mouseOverCounter = 150
}
function onMouseWheel (event) {
+2 -10
View File
@@ -19,6 +19,7 @@ function newPanelTabButton () {
thisObject.container.name = 'Panel Tab Button'
thisObject.container.initialize()
thisObject.container.isClickeable = true
thisObject.container.isDraggeable = false
thisObject.container.frame.containerName = 'Panel Tab Button'
/* Animation to hide the pannel */
@@ -127,19 +128,10 @@ function newPanelTabButton () {
drawButton()
}
function getContainer (point) {
function getContainer (point, purpose) {
let container
/* First we check if thisObject point is inside thisObject space. */
if (thisObject.container.frame.isThisPointHere(point, true) === true) {
/* Now we see which is the inner most container that has it */
return thisObject.container
} else {
/* This point does not belong to thisObject space. */
return undefined
}
}