Return objects to first frame when leaving their context
This commit is contained in:
+1
-3
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user