NaturalIntelligence / NaturalIntelligence/imglab
Issue while creating polygon and moving scrollbars
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 1k
- Forks
- 613
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
When we are drawing a polygon on an image and we are zoomed in on the image. While drawing we want to use the scrollbars to continue drawing a part of the image that is not visible in the screen. When moving the scrollbars, the crossfire (mouse cursor) doesn't align anymore with the actual point of the polygon.
To Reproduce
Steps to reproduce the behavior:
- Import an image
- Open the image by clicking on it on the bar at the bottom
- Zoom in so a part of the image is outside the view
- Click on Polygon
- Start creating points
- Move the horizontal or vertical scrollbar
- Try to create an extra polygon point, and see it does not align with the actual point and the mouse cursor.
Screenshots

Console Errors
None
Device detail:
- OS: Windows 10 Pro 1809
- Browser: Chrome 78.0.3904.87 (x64)
Additional context
None
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by importing an image, zooming in, selecting Polygon, creating points, and moving a scrollbar. Inspect the polygon drawing and scrollbar interaction; done means newly placed points remain aligned with the cursor after horizontal or vertical scrolling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100