From 125bfeea11cd34928b9bb937bce80b8076a5beff Mon Sep 17 00:00:00 2001 From: 2ManyProjects Date: Thu, 8 Jan 2026 01:49:14 -0600 Subject: [PATCH] fixed edge scan --- src/stitching_scanner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: