Bug Fixed

This commit is contained in:
Luis Fernando Molina committed 2020-02-12 08:07:54 +01:00
1 parent 70e4b5c4d0
commit 2e944c6d01
3 files changed
+10 -4

No files matched your search

+8 -3
View File
@@ -34,6 +34,7 @@ function newViewport () {
transformThisPoint: transformThisPoint,
unTransformThisPoint: unTransformThisPoint,
isThisPointVisible: isThisPointVisible,
isThisPointInViewport: isThisPointInViewport,
fitIntoVisibleArea: fitIntoVisibleArea,
displace: displace,
physics: physics,
@@ -311,11 +312,15 @@ function newViewport () {
}
function isThisPointVisible (point) {
if (visibleArea === undefined) {
getVisibleArea()
if (point.x < thisObject.visibleArea.topLeft.x || point.x > thisObject.visibleArea.bottomRight.x || point.y < thisObject.visibleArea.topLeft.y || point.y > thisObject.visibleArea.bottomRight.y) {
return false
} else {
return true
}
}
if (point.x < visibleArea.topLeft.x || point.x > visibleArea.bottomRight.x || point.y < visibleArea.topLeft.y || point.y > visibleArea.bottomRight.y) {
function isThisPointInViewport (point) {
if (point.y > browserCanvas.height - COCKPIT_SPACE_POSITION) {
return false
} else {
return true
+1
View File
@@ -112,6 +112,7 @@ function newChartSpace () {
function getContainer (point, purpose) {
if (thisObject.visible !== true) { return }
if (thisObject.viewport.isThisPointInViewport(point) === false) { return }
let container
+1 -1
View File
@@ -97,7 +97,7 @@ function newSplashScreen () {
/* Second the % of Advance. */
let label = '' + Math.trunc(stepsInitializationCounter) + ' %'
stepsInitializationCounter = stepsInitializationCounter + 2.0
stepsInitializationCounter = stepsInitializationCounter + 5.0
if (stepsInitializationCounter > 99) {
splashScreenNeeded = false