Merge pull request #73 from AAMasters/develop

Context Menu Appearing Faster + BUG FIX
This commit is contained in:
benme authored and GitHub committed 2019-06-26 10:47:21 -03:00
commit 13016e9cb3
3 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -114,7 +114,7 @@ function newCircularMenu () {
function onNotFocus () {
for (let i = 0; i < menuItems.length; i++) {
let menutItem = menuItems[i]
menutItem.targetRadius = menutItem.rawRadius * 0 - i * 5
menutItem.targetRadius = menutItem.rawRadius * 0 - i * 4
menutItem.isDeployed = false
}
thisObject.isDeployed = false
+1 -1
View File
@@ -106,7 +106,7 @@ function newCircularMenuItem () {
function physics () {
if (thisObject.dontShowAtFullscreen === true && CURRENT_TOP_MARGIN === 0) { return }
const INCREASE_STEP = 1
const INCREASE_STEP = 2
if (Math.abs(thisObject.currentRadius - thisObject.targetRadius) >= INCREASE_STEP) {
if (thisObject.currentRadius < thisObject.targetRadius) {
@@ -504,6 +504,11 @@ function newPartsFromNodes () {
}
let phaseParent = parentNode
let m = phaseParent.phases.length
if (phaseParent.payload.parentNode !== undefined) {
if (phaseParent.payload.parentNode.type === 'Initial Definition' && m > 0) { return }
}
let phase = {
name: 'New Phase',
formula: {