BUG FIXED when moving over textarea
This commit is contained in:
1 parent
abc586b18c
commit
cdd9d1fc82
4 files changed
+16
-3
No files matched your search
@@ -470,8 +470,8 @@ function newCanvas () {
|
||||
|
||||
/* When the mouse leaves the canvas, our elements needs to react to the fact that the mouse is over a far away place */
|
||||
let thisEvent = {
|
||||
pageX: 100000000000,
|
||||
pageY: 100000000000
|
||||
pageX: VERY_LARGE_NUMBER,
|
||||
pageY: VERY_LARGE_NUMBER
|
||||
}
|
||||
onMouseOver(thisEvent)
|
||||
}
|
||||
|
||||
@@ -98,7 +98,14 @@ function newCodeEditor () {
|
||||
|
||||
function getContainer (point) {
|
||||
let container
|
||||
if (thisObject.visitble === true) {
|
||||
if (thisObject.visible === true) {
|
||||
if (point.x === VERY_LARGE_NUMBER) {
|
||||
/* The the mouse leaves the canvas, and event of mouse over with a ridiculous coordinate is triggered so that
|
||||
anyone can react. In our case, the code editor has a text area that is not part of the canvas, so the event is
|
||||
triggered. We compensate recognizing this coordinate and returning our container. */
|
||||
return thisObject.container
|
||||
}
|
||||
|
||||
if (thisObject.container.frame.isThisPointHere(point, true, false) === true) {
|
||||
return thisObject.container
|
||||
} else {
|
||||
|
||||
@@ -381,6 +381,11 @@ function newStrategyPart () {
|
||||
function getContainer (point) {
|
||||
let container
|
||||
|
||||
if (thisObject.codeEditor !== undefined) {
|
||||
container = thisObject.codeEditor.getContainer(point)
|
||||
if (container !== undefined) { return container }
|
||||
}
|
||||
|
||||
container = thisObject.partTitle.getContainer(point)
|
||||
if (container !== undefined) { return container }
|
||||
|
||||
|
||||
@@ -151,6 +151,7 @@ const _1_MINUTE_IN_MILISECONDS = 1 * 60 * 1000;
|
||||
let NEW_SESSION_INITIAL_DATE = new Date(); // This value will be overwritten at the viewPort.initialize if the user had a prevous session with this same browser.
|
||||
let INITIAL_ZOOM_LEVEL = -28.25 // This is the zoom level at the view port in which the APP starts.
|
||||
let INITIAL_TIME_PERIOD = ONE_DAY_IN_MILISECONDS // This value will be overwritten at the viewPort.initialize if the user had a prevous session with this same browser.
|
||||
let VERY_LARGE_NUMBER = 100000000000
|
||||
|
||||
let maxDate = new Date();
|
||||
maxDate.setMilliseconds(0);
|
||||
|
||||
Reference in new issue
Block a user