Minimizing layer group causes multiple layer selections
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
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
Yes, it's been happening on the continuous and official 2.2.2 release, if I remember correctly.
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.
Unable to reproduce on Alpha.
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
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.
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.