Return objects to first frame when leaving their context

This commit is contained in:
Skyler Lehmkuhl 2024-12-20 15:58:18 -05:00
parent dd2c108541
commit a6af68bca8
1 changed files with 1 additions and 3 deletions

View File

@ -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) {