Faster Menues

This commit is contained in:
Luis Fernando Molina committed 2020-03-30 18:53:02 +02:00
1 parent 703ef3e2fd
commit 0185b90b36
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -198,7 +198,7 @@ function newCircularMenu () {
function onNotFocus () {
for (let i = 0; i < menuItems.length; i++) {
let menuItem = menuItems[i]
menuItem.targetRadius = menuItem.rawRadius * 0 - i * 4
menuItem.targetRadius = menuItem.rawRadius * 0 - i * 1.5
menuItem.isDeployed = false
}
thisObject.isDeployed = false
+2 -1
View File
@@ -155,7 +155,8 @@ function newCircularMenuItem () {
function physics () {
if (thisObject.dontShowAtFullscreen === true && AT_FULL_SCREEN_MODE === true) { return }
const INCREASE_STEP = 2
let INCREASE_STEP = 2 // (thisObject.targetRadius - thisObject.rawRadius) / 4
// if (INCREASE_STEP === 0) { INCREASE_STEP = 2 }
if (Math.abs(thisObject.currentRadius - thisObject.targetRadius) >= INCREASE_STEP) {
if (thisObject.currentRadius < thisObject.targetRadius) {