Return objects to first frame when leaving their context
This commit is contained in:
parent
dd2c108541
commit
a6af68bca8
|
|
@ -3313,6 +3313,7 @@ function stage() {
|
||||||
// we didn't click on a child, go up a level
|
// we didn't click on a child, go up a level
|
||||||
if (context.activeObject.parent) {
|
if (context.activeObject.parent) {
|
||||||
context.selection = [context.activeObject]
|
context.selection = [context.activeObject]
|
||||||
|
context.activeObject.currentFrameNum = 0;
|
||||||
context.shapeselection = []
|
context.shapeselection = []
|
||||||
context.objectStack.pop()
|
context.objectStack.pop()
|
||||||
updateUI()
|
updateUI()
|
||||||
|
|
@ -4318,9 +4319,6 @@ function updateInfopanel() {
|
||||||
|
|
||||||
})
|
})
|
||||||
input.addEventListener("blur", (e) => {
|
input.addEventListener("blur", (e) => {
|
||||||
// Handle when the input field loses focus
|
|
||||||
console.log("Input lost focus");
|
|
||||||
// Your logic here
|
|
||||||
switch (prop.type) {
|
switch (prop.type) {
|
||||||
case "text":
|
case "text":
|
||||||
if (prop.value) {
|
if (prop.value) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue