Cleaning
This commit is contained in:
1 parent
276b23f823
commit
11a3d80d6a
4 files changed
-7
No files matched your search
@@ -567,7 +567,6 @@ function newCanvas () {
|
||||
|
||||
function onMouseClick (event) {
|
||||
try {
|
||||
console.log('ignoreNextClick', ignoreNextClick)
|
||||
if (ignoreNextClick === true) {
|
||||
ignoreNextClick = false
|
||||
return
|
||||
|
||||
@@ -278,7 +278,6 @@ function newTimeMachine () {
|
||||
for (let i = 0; i < thisObject.timelineCharts.length; i++) {
|
||||
container = thisObject.timelineCharts[i].getContainer(point, purpose)
|
||||
if (container !== undefined) {
|
||||
console.log('IN TIME MACHINE GOT THIS CONTAINER: ' + container.name)
|
||||
if (container.isForThisPurpose(purpose)) {
|
||||
if (thisObject.container.frame.isThisPointHere(point) === true) {
|
||||
return container
|
||||
|
||||
@@ -88,9 +88,7 @@ function newAutoScaleButton () {
|
||||
}
|
||||
|
||||
function getContainer (point, purpose) {
|
||||
console.log('INSIDE BUTTON')
|
||||
if (thisObject.container.frame.isThisPointHere(point, true) === true) {
|
||||
console.log('RETURNING BUTTON FROM BUTTON')
|
||||
return thisObject.container
|
||||
}
|
||||
}
|
||||
|
||||
@@ -150,12 +150,9 @@ function newRateScale () {
|
||||
}
|
||||
|
||||
function getContainer (point, purpose) {
|
||||
console.log(purpose, point.x, point.y)
|
||||
if (thisObject.container.frame.isThisPointHere(point, true) === true) {
|
||||
console.log('INSIDE')
|
||||
let container = autoScaleButton.getContainer(point, purpose)
|
||||
if (container !== undefined) {
|
||||
console.log('RETURNING BUTTON FROM SCALE')
|
||||
return container
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user