@gamelearn/arcade-components 2.18.1 → 2.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -353,11 +353,17 @@ var DialogComponent = function DialogComponent(_ref) {
|
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
-
|
|
357
|
-
|
|
356
|
+
zoomStarted.current = false;
|
|
357
|
+
|
|
358
|
+
if (lastSet.current) {
|
|
359
|
+
emitEvent({
|
|
360
|
+
type: 'success'
|
|
361
|
+
});
|
|
358
362
|
}
|
|
359
363
|
|
|
360
|
-
|
|
364
|
+
if (!messagePosition.current.child) {
|
|
365
|
+
cam.copy(defaultCamera);
|
|
366
|
+
}
|
|
361
367
|
}
|
|
362
368
|
}, animationTarget.position));
|
|
363
369
|
} else if (zoomStarted.current) {
|
|
@@ -431,12 +437,14 @@ var DialogComponent = function DialogComponent(_ref) {
|
|
|
431
437
|
show: false
|
|
432
438
|
});
|
|
433
439
|
resetCameraView();
|
|
434
|
-
camera.copy(defaultCamera);
|
|
435
440
|
resetAnims();
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
441
|
+
|
|
442
|
+
if (!zoomInActor) {
|
|
443
|
+
emitEvent({
|
|
444
|
+
type: 'success'
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
}, [camera, emitEvent, resetAnims, resetCameraView, zoomInActor]); // Reset anim after unmount
|
|
440
448
|
|
|
441
449
|
(0, _react.useEffect)(function () {
|
|
442
450
|
return function () {
|