Context Menu Appearing Faster

This commit is contained in:
Luis Fernando Molina committed 2019-06-26 15:45:43 +02:00
1 parent 1b6e4a5daf
commit c1789c16f1
2 files changed
+2 -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) {