Bug 477399 - Add magnifying glass before region selection, use arrow keys to move cursor by 1 pixel before and during selection
Summary: Add magnifying glass before region selection, use arrow keys to move cursor b...
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Other Other
: NOR wishlist
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-23 04:18 UTC by Anon
Modified: 2023-12-12 15:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Video of proposed method. (557.30 KB, video/webm)
2023-11-23 04:18 UTC, Anon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anon 2023-11-23 04:18:57 UTC
Created attachment 163383 [details]
Video of proposed method.

Moving the cursor by 1 pixel with the arrow keys would make precise region selection much more easy.
The current method:
1. Select rectangular region capture mode.
2. Click and hold LMB and drag a region (the first point does not have magnification, therefore it is likely to miss the intended pixel)
3. Finish dragging region, struggling to hit the correct pixel.
4. Edit the points if you did not perfectly match the intended pixels (highly likely) by dragging the points with the cursor (no fine control).

Proposed method, used by ShareX:
1. Select rectangular region capture mode.
2. Allow movement of cursor with arrow keys to move by 1 pixel (with added magnification)
3. Click and hold LMB and drag.
4. Allow movement for 2nd point with arrow keys.
5. Release LMB.
Comment 2 Noah Davis 2023-12-12 15:58:37 UTC
Git commit 98b7be7c281e160d91afee5d1a7b1f270fed4646 by Noah Davis.
Committed on 12/12/2023 at 16:57.
Pushed by ndavis into branch 'master'.

Show magnefier with Shift and use magnifier locations

You can now get the magnifier while using arrow keys to modify the
selection or hovering by holding Shift. The magnifier tries to keep its
location close to where the mouse was, the last handle you dragged with
the mouse or the corner closest to the last part of the selection that
was modified.

The magnifier is only shown now while Shift is held and the "Show
magnifier" setting is enabled, but I'm not actually that happy with this
behavior even if it seems more accurate to what the UI says. I think I
want to make the setting toggle between always showing while modifying
the selection and only showing while shift is held.

M  +81   -5    src/Gui/ImageCaptureOverlay.qml
M  +176  -97   src/Gui/SelectionEditor.cpp
M  +24   -22   src/Gui/SelectionEditor.h

https://invent.kde.org/graphics/spectacle/-/commit/98b7be7c281e160d91afee5d1a7b1f270fed4646