Bug 452635 - Dragging out of the color selector popup's bounds resets the Advanced Color Selector to red
Summary: Dragging out of the color selector popup's bounds resets the Advanced Color S...
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: Color Selectors (other bugs)
Version First Reported In: 5.0.5
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-15 03:58 UTC by oktopuse
Modified: 2022-07-13 11:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot of Krita with the Advanced Color Selector + "Show color selector" popup while clicking + dragging to the left of the popup's area withotut releasing yet (127.88 KB, image/png)
2022-04-15 03:58 UTC, oktopuse
Details

Note You need to log in before you can comment on or make changes to this bug.
Description oktopuse 2022-04-15 03:58:20 UTC
Created attachment 148168 [details]
Screenshot of Krita with the Advanced Color Selector + "Show color selector" popup while clicking + dragging to the left of the popup's area withotut releasing yet

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

This is for version 5.0.5, but that's not listed as an option for me yet.

STEPS TO REPRODUCE
1. Open Advanced Color Selector docker
2. Click the icon to configure it
3. Select HSY' as the Color Model Type
4. Select the fifth color selector shape (value / saturation rectangle for one hue, with a hue strip at the top)
5. Click OK
6. Select some color like a teal in the Advanced Color Selector
7. Use the "Show color selector" hotkey
8. Click and drag on the popup's color selector until the cursor goes off to the left side, the top side, or the bottom side (the right side is fine)
9. See the Advanced Color reset to red (furthest left on the hue strip)
10. Without releasing the mouse button, drag back into the popup's color selector and see it return to the expected color
11. Continue dragging out of the popup until the color reset to red happens again and release the click
12. Change the color on the Advanced Color Selector back to teal or some non-red color
13. Use the "Show color selector" hotkey
14. See the popup's color selector is for red now and not the color in the Advanced Color Selector

OBSERVED RESULT
Similar to bug 452422, the Advanced Color Selector and the "Show color selector" hotkey's popup color selector get out of sync + dragging outside of the popup's color selector area causes the Advanced Color Selector to reset its hue value.

EXPECTED RESULT
Clicking then dragging outside of the popup's color selector shouldn't change the hue of the Advanced Color Selector (they should stay in sync) and after releasing / selecting a color in the popup and changing it in the Advanced Color Selector the popup should reflect the newly selected color as well.

SOFTWARE/OS VERSIONS
Windows: Windows 10, Version 21H1, OS Build 19043.1645
macOS: N/A
Linux/KDE Plasma: N/A
(available in About System)
KDE Plasma Version: N/A
KDE Frameworks Version: N/A
Qt Version: 5.12.12

ADDITIONAL INFORMATION
I found this as I was trying to select a grayscale value (clicking and dragging furthest left in the rectangle) and noticed it kept resetting my hue if I tried to do that via the popup rather than the Advanced Color Selector directly.