diff --git a/src/stitching_scanner.py b/src/stitching_scanner.py index 32c6305..82ffa1a 100644 --- a/src/stitching_scanner.py +++ b/src/stitching_scanner.py @@ -502,9 +502,9 @@ class StitchingScanner: max_no_movement = 50 stop_reason = 'stopped' if direction == ScanDirection.RIGHT: - self.state.current_x = self.state.mosaic_width - w # At right edge - elif direction == ScanDirection.LEFT: self.state.current_x = 0 + elif direction == ScanDirection.LEFT: + self.state.current_x = self.state.mosaic_width - w # At right edge self.log(f"Current X offset ({self.state.current_x}px)") while self.running and not self.paused: