Fix animation saving issue

This commit is contained in:
JannisX11 2021-03-01 13:47:06 +01:00
parent 669d7d2326
commit de444f475d
3 changed files with 4 additions and 4 deletions

View File

@ -453,7 +453,6 @@
/*Animations*/
.panel#animations #animations_list {
min-height: 126px;
max-height: 294px;
padding-bottom: 12px;
}
.animation {

View File

@ -258,12 +258,14 @@ class Animation {
anim_keys.forEach(key => {
let key_index = file_keys.indexOf(key);
if (key_index < index) {
if (key_index == -1) {
//Skip
} else if (key_index < index) {
file_keys.splice(key_index, 1);
file_keys.splice(index, 0, key);
changes = true;
} else if (key_index >= 0) {
} else {
index = key_index;
}
})

View File

@ -781,7 +781,6 @@ onVueSetup(function() {
e2.clientY - e1.clientY,
]
if (!is_setup) {
console.log(Math.pow(offset[0], 2) + Math.pow(offset[1], 2))
if (Math.pow(offset[0], 2) + Math.pow(offset[1], 2) > 40) {
setup();
} else {