ossappscollective / ossappscollective/OSS-DocumentScanner

[BUG] Magnifier crosshair is offset when adjusting Top-Left and Bottom-Left crop corners

Open
#570 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
2.5k
Forks
122
Avg merge
1d 58m
Merged PRs (30d)
17

Description

Which app is your issue for

Document Scanner

Version

1.18.1.135

What platform are you using?

Android

OS Version

Android Version: 16
Samsung OneUI: 8.0

What happened?
Description

​When manually cropping a scanned image, the crosshair inside the zoom bubble does not align correctly with the actual position of the corner handle.
​The zoomed view seems to be offset from the touch point, making it difficult to achieve a precise crop because the crosshair is not pointing where the handle is actually located.

Scope

This issue specifically affects the Top Left and Bottom Left corners. The right-side corners appear to function correctly (or at least are not exhibiting this specific offset).

​Steps to Reproduce

​Scan a document or import an image.
​Enter the manual cropping/adjustment screen.
​Tap and drag the Top Left corner handle.
​Observe the zoom magnifier bubble.
​Note that the crosshair inside the bubble is offset and does not accurately reflect the corner's position on the document.
​Repeat for the Bottom Left corner to see the same behavior.

​Expected Behavior

​The crosshair inside the magnifier should perfectly align with the tip of the corner handle being dragged, allowing for pixel-perfect adjustment of the crop area.

​Actual Behavior

​The crosshair in the magnifier is visually offset from the handle's location, showing a different part of the image than what is being selected.

Image
Image

Relevant log output

Code of Conduct
  • I agree to follow this project's Code of Conduct

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue on Android 16 with Samsung OneUI 8.0 by opening the manual crop screen and dragging the Top Left and Bottom Left handles. Trace the magnifier behavior for those handles and verify that the crosshair aligns with the handle tip while the right-side corners remain unaffected.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
frontend, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.