Drawpile icon indicating copy to clipboard operation
Drawpile copied to clipboard

Minimizing layer group causes multiple layer selections

Open vipperz opened this issue 8 months ago • 7 comments

If I were to select a layer in a layer group or have the group selected from the bottom and minimize it to see ungrouped layers, it will cause all or multiple ungrouped layers to be selected. Doesn't happen when the layer group is at the top.

https://github.com/user-attachments/assets/9f4cc5d0-cb8b-4f46-a50a-a4a195499ec6

vipperz avatar Apr 28 '25 10:04 vipperz

I can't reproduce this, but there's been a fix to the code in this area. Does this still happen in the continuous release? https://github.com/drawpile/Drawpile/releases/tag/continuous

askmeaboutlo0m avatar Apr 28 '25 15:04 askmeaboutlo0m

Yes, it's been happening on the continuous and official 2.2.2 release, if I remember correctly.

vipperz avatar Apr 28 '25 15:04 vipperz

I'm unable to reproduce the issue on any platform anyway, so it's either already fixed or there's something missing in the process.

askmeaboutlo0m avatar Apr 28 '25 15:04 askmeaboutlo0m

Image

Unable to reproduce on Alpha.

MorrowShore avatar Apr 28 '25 16:04 MorrowShore

It seems it happens when the layer dock is a minimal size. It stops happening when all the layers are able to appear on the screen without scrolling down.

https://github.com/user-attachments/assets/6b309bfb-e430-4240-873d-9d3a7636e902

vipperz avatar Apr 28 '25 16:04 vipperz

Ah, yes, I'm able to reproduce it. It's because it thinks you want to select multiple layers by clicking and holding the mouse button down, like you can do when clicking the boxes on the right. I guess there needs to be a check that the initial click was actually on the box.

askmeaboutlo0m avatar Apr 28 '25 16:04 askmeaboutlo0m

Looking into this, it's actually a bug in Qt. The same thing happens in Krita and any other Qt tree view, toggling a nested item, holding the mouse button down and moving the cursor will start selecting whatever you drag over.

askmeaboutlo0m avatar May 12 '25 12:05 askmeaboutlo0m