Bug 512450

Summary: [5.3, Android] The placement of the floating Selection Actions Bar can't be changed via touch
Product: [Applications] krita Reporter: Door1 <a.pond105>
Component: Tools/SelectionAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Android   
OS: Android 14.x   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Door1 2025-11-21 22:12:17 UTC
SUMMARY
[5.3, Android] The placement of the floating Selection Actions Bar can't be changed via touch

STEPS TO REPRODUCE
1. Make a selection to show the floating Selection Actions Bar
2. Using your finger, drag the right-most icon to attempt to move the action bar

OBSERVED RESULT
The bar does not move.

EXPECTED RESULT
The bar should move.

You will also notice that the correct behavior happens when dragging with a mouse. The problem happens when dragging with a finger on the screen. 

SOFTWARE/OS VERSIONS
Krita 5.3 nightly (git edefd69 / edefd699)
(November 19, 2025)
Android 15
arm64
Comment 1 Dmitry Kazakov 2025-12-08 09:41:10 UTC
Git commit 6f69fbe3d97b9a70bed21e46154432e410870702 by Dmitry Kazakov, on behalf of Carsten Hartenfels.
Committed on 08/12/2025 at 09:40.
Pushed by dkazakov into branch 'master'.

Make selection action bar act propertly on touch

By rewriting the event handling to not cast random other event types to
QMouseEvent and activating the buttons from the weird event filter. This
also makes the bar not draggable on its buttons.
Related: bug 512449

M  +151  -40   libs/ui/kis_selection_actions_panel.cpp
M  +10   -0    libs/ui/kis_selection_actions_panel.h

https://invent.kde.org/graphics/krita/-/commit/6f69fbe3d97b9a70bed21e46154432e410870702