Bug 490677 - Long-press on Folder View widget without final row filled up creates a selection rectangle that doesn't go away
Summary: Long-press on Folder View widget without final row filled up creates a select...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Desktop icons & Folder View widget (show other bugs)
Version: 6.1.2
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-22 22:32 UTC by Emmett Culley
Modified: 2024-07-31 20:24 UTC (History)
2 users (show)

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


Attachments
Normal folderview appearance (31.28 KB, image/avif)
2024-07-27 15:26 UTC, Emmett Culley
Details
After long click (44.93 KB, image/avif)
2024-07-27 15:30 UTC, Emmett Culley
Details
After moving mouse in then out (44.35 KB, image/avif)
2024-07-27 15:33 UTC, Emmett Culley
Details
After click out (42.58 KB, image/avif)
2024-07-27 15:36 UTC, Emmett Culley
Details
After clickout and moving mcursor in then out of view (44.18 KB, image/avif)
2024-07-27 15:38 UTC, Emmett Culley
Details
After click out then click in (18.73 KB, image/avif)
2024-07-27 15:43 UTC, Emmett Culley
Details
After clickout then mouse in and click (39.28 KB, image/avif)
2024-07-27 15:45 UTC, Emmett Culley
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emmett Culley 2024-07-22 22:32:57 UTC
SUMMARY
After long click inside a folder view a selection rectangle appears along with the sizing and move grab points, then as long as the mouse stays in the view that rectangle expands and contracts  as you move the mouse.    If you rangle one or more icons (they get highlighted) and click, nothing happens, so no real selection happens.  So far no harm.  Not sure why yu'd want to select multiple icons anyway.

Then,  if you click outside the view the sizing and movement grab points dissappear, but the selection rectangle remains.  Moving back into the view causes the rectangle to expand and contract.  If you click on a different location in the view, then that rectangle expands a contracts around that spot.  If you leave the view the selection rectangle remains at whatever size it was when you moused out fo the view.  This is the real issue.

After messing with it while writing this bug report, I found that if after you have clicked outside the view, therefore removing the grab points,  then go back into the view, expand the rectangle around one or more icons and click, one of the icons is triggered and the rectangle disappears.

STEPS TO REPRODUCE
1.  Long click inside a folder view.  Note grab points and selection rectangle.
2.  Use selection rectangle to select one or more icons.  Nothing happens, nore I suspect should anything happen.
3.  Click outside the folder view and the grab points go away, but the sselection rectangle doesn't.
4.  Move the mose back into the view and see that the selectin rectanlg again follwos the mouse.

OBSERVED RESULT
Selection rectangle remains long after it shiould not.

EXPECTED RESULT
Selection rectangle should disappear when the mouse pointer is moved out of the view, and only clicking inside the view should bring up the selection process.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Fedora 40
(available in About System)
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Wayland, though I did install xwayland and sometimes have to log into x11.  Though not often, and usually only to verify something not working.
Comment 1 Nate Graham 2024-07-26 23:05:40 UTC
Any chance you could attach a screen recording that shows the issue happening? I'm having a hard time both reproducing the issue and also even visualizing what it would look like.
Comment 2 Emmett Culley 2024-07-27 15:26:12 UTC
Created attachment 172044 [details]
Normal folderview appearance

What view loos like normally.  It may or may not hav one item highlighted.
Comment 3 Emmett Culley 2024-07-27 15:30:53 UTC
Created attachment 172046 [details]
After long click

After long click then moving mouse out the bottom of the view
Comment 4 Emmett Culley 2024-07-27 15:33:48 UTC
Created attachment 172048 [details]
After moving mouse in then  out

This time I moved the cursor into the view, moved it around a bit, them moved the mousse out the top.

Note that while the cursor is inside the view, the highlight rectangle changes shape centered arund where the cursor entered the view.

Note the retangle size difference between this screenshot and the previous.
Comment 5 Emmett Culley 2024-07-27 15:36:29 UTC
Created attachment 172049 [details]
After click out

This is after clicking outside the view then moving the cursor into the view then out.

Again, as long as the cursor remains inside the view the rectangle changes size as the cursor is moved around the entry point.
Comment 6 Emmett Culley 2024-07-27 15:38:12 UTC
Created attachment 172050 [details]
After clickout and moving mcursor in then out of view

Same as last, but pointing out that the size of the rectangle changes until the cursor leaves the view.
Comment 7 Emmett Culley 2024-07-27 15:43:07 UTC
Created attachment 172051 [details]
After click out then click in

In this case I had the selection rectangle around four items.  I didn't investigate very far, but only one of the items that was selected and so clicking on execute open one of the folders in dolphin.  I did not try to find a pattern on which is opened, except that only one did open.
Comment 8 Emmett Culley 2024-07-27 15:45:51 UTC
Created attachment 172052 [details]
After clickout then mouse in and click

This is what the folder view looks like after click in the view and the previous screenshots dialog pops up.  Closing the pop up leaves the view as this screenshot depicts.
Comment 9 Nate Graham 2024-07-29 18:05:23 UTC
Thanks. I can't reproduce any of those issues, and your screenshots are a bit weird, with scaling glitches that look like they should only be seen on X11. Were they taken in an X11 session, or on Wayland with the font DPI manually forced to some value instead of using the scaling system?

Can you reproduce this in a new clean user account with no customization in a wayland session (except adding a Folder View widget to the desktop, of course)?

If so, can you comment on what hardware you're using?
Comment 10 Nate Graham 2024-07-29 18:17:31 UTC
Never mind, I just reproduced it. I think I understand how I wasn't able to reproduce it in the past. It on'y happens when the final row in the grid isn't fully filled up with files or folders.
Comment 11 Emmett Culley 2024-07-29 20:39:51 UTC
(In reply to Nate Graham from comment #9)
> Thanks. I can't reproduce any of those issues, and your screenshots are a
> bit weird, with scaling glitches that look like they should only be seen on
> X11. Were they taken in an X11 session, or on Wayland with the font DPI
> manually forced to some value instead of using the scaling system?
> 
> Can you reproduce this in a new clean user account with no customization in
> a wayland session (except adding a Folder View widget to the desktop, of
> course)?
> 
> If so, can you comment on what hardware you're using?

32" monitor, 3840x2160 resolution.  No scaling.  I do an the system fonts set to 21 or 22.

Wayland or X11, it doen't matter.

What you are seeing are screenshnots on only the Folder view, not of the entier screen.
Comment 12 Emmett Culley 2024-07-29 20:43:07 UTC
(In reply to Nate Graham from comment #10)
> Never mind, I just reproduced it. I think I understand how I wasn't able to
> reproduce it in the past. It on'y happens when the final row in the grid
> isn't fully filled up with files or folders.

It happens for me no matter how many icons are in the view.    I am will ing to have a zoom session to demonstrate.
Comment 13 Nate Graham 2024-07-31 16:05:04 UTC
I can only reproduce it when the final row isn't filled up, but it doesn't matter; fixing that will fix it universally.

FWIW I would recommend setting the system to 200% scale rather than doubling the font size. Everything will look a lot better, and you won't have tiny icons and weird visual glitches everywhere.
Comment 14 Emmett Culley 2024-07-31 17:50:53 UTC
Using scaling would only migate the advantages of a large screen.  I tried it once some years ago and found it to be pretty awful.  But thanls for the suggestion.

And now that I found out how to increase icon size, I am happy again.  I am even finding that wayland is up to snuff.  At least for my use case.
Comment 15 Nate Graham 2024-07-31 20:20:00 UTC
You're welcome. FWIW making icons and text twice as large at 100% scale pretty much gets you 90% of the way to just using the global scaling system, just with random visual glitches all over the place, and the size relationships between objects broken. You might try it again on Wayland. We've put a lot of work into making the scaling system work nicely.
Comment 16 Emmett Culley 2024-07-31 20:24:05 UTC
The real problem with scaling is that it makes everything bigger and so everghing takes up more screen real estate.

And besides, I've have my desktop set up how I like it for a very long time.  Since KDE 3 :-)