@jaak.ai/stamps 2.1.0-dev.15 → 2.1.0-dev.17

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.
@@ -1524,6 +1524,12 @@ export class JaakStamps {
1524
1524
  try {
1525
1525
  // Close the selector immediately when user selects a camera
1526
1526
  this.showCameraSelector = false;
1527
+ // Check if user selected the same camera that's already active
1528
+ const currentCameraId = this.cameraService.getSelectedCameraId();
1529
+ if (currentCameraId === cameraId) {
1530
+ // Same camera selected, just close the selector without switching
1531
+ return;
1532
+ }
1527
1533
  this.isSwitchingCamera = true;
1528
1534
  // Stop current video stream
1529
1535
  if (this.videoStream) {
@@ -1569,6 +1575,11 @@ export class JaakStamps {
1569
1575
  this.hasDocumentDetected = false;
1570
1576
  // Reset sistema simplificado
1571
1577
  this.processedFramesCount = 0;
1578
+ // Reset manual capture and performance degraded mode flags
1579
+ this.showManualCaptureButton = false;
1580
+ this.performanceDegradedMode = false;
1581
+ this.showPerformanceMessage = false;
1582
+ this.processingButton = null;
1572
1583
  this.slowFrameCount = 0;
1573
1584
  // Reset performance degradation state
1574
1585
  this.hasAutoSwitchedToManual = false;