Improve ImageZoom target selection, dragging behaviour and selection frame styling
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- typescript
- Domain
- frontend
Research direction
Start at the ImageZoom component and inspect its existing target-selection, mouse interaction, and selection-frame styling logic. Verify that clicks and held-button dragging inside the frame reposition the target continuously, and that the frame uses a neutral colour without changing the interface.
Written by the indexing model from the issue text.
Description
Change Proposal: Improve ImageZoom target selection, dragging behaviour, and selection frame styling
What is being proposed?
Update ImageZoom so the zoom target can be changed by clicking anywhere inside the selected frame, updated continuously while dragging the mouse (clicking and moving with the mouse button held down), and displayed using a more neutral selection frame colour.
Why is this needed?
Currently, when the user clicks inside the selected frame but on a different point, the zoom target does not update.
To select a nearby point, the user has to click outside the box first, then click the desired spot. This makes precise zoom targeting feel awkward and less intuitive.
The current behaviour is also limiting when the user wants to refine the zoom target by dragging. Once a frame is selected, moving the mouse while holding the button down does not continuously reposition the target, making it harder to quickly explore nearby areas and find the exact point of interest.
For clarity, this proposal refers specifically to dragging (click-and-move), not simply moving the mouse cursor over the image.
In addition, the current red selection frame may imply an error, warning, or invalid state. Since the frame represents a normal interaction state, a more neutral colour would better align with common UI expectations and reduce unnecessary visual emphasis.
What will change?
Behaviour:
- The zoom target should update when the user clicks a new point inside the current frame
- The zoom target should update continuously while the user drags the mouse within the frame (with the mouse button held down)
Visuals:
- Replace the current red selection frame with a more neutral colour.
- The current red styling may imply an error or warning state, whereas the selection frame represents a normal interaction state.
- A neutral colour would better align with common UI expectations and reduce unnecessary visual emphasis.
Interface changes (if any)
No interface changes are expected.
Breaking change?
- Yes
- No
Next steps
A maintainer will review this issue.
If accepted, it will be marked as accepted and a PR may then be opened.
- Dominant language
- TypeScript
- Stars
- 9
- Forks
- 3
- Avg merge
- 6d 7h
- Merged PRs (30d)
- 20
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from DiamondLightSource/sci-react-ui
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
DiamondLightSource/sci-react-ui#325 · 1 comment ·
Maintainers usually reply within 2 days
-
accepted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
DiamondLightSource/sci-react-ui#283 ·
Maintainers usually reply within 2 days
-
needs-triage
Difficulty 3/5 1-2 days Newbie friendliness 65/100
DiamondLightSource/sci-react-ui#334 ·
Maintainers usually reply within 2 days
-
needs-triage
Difficulty 5/5 Over a week Newbie friendliness 38/100
DiamondLightSource/sci-react-ui#332 ·
Maintainers usually reply within 2 days
-
needs-triage
Difficulty 5/5 Over a week Newbie friendliness 35/100
DiamondLightSource/sci-react-ui#331 ·
Maintainers usually reply within 2 days
All issues in DiamondLightSource/sci-react-ui
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
prime-radiant-inc/evener#3726 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
FuRongJun-1999/dsh-memory#56 ·
Maintainers usually reply within 1 day
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
pingdotgg/t3code#15682 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
openwatersio/slackwater.xyz#152 ·
Maintainers usually reply within 1 day
-
[BUG] 请修改标题为您遇到的问题Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
OpenListTeam/OpenList-Worker#103 ·
Maintainers usually reply within 1 day