Bug 439921

Summary: Certain parts of certain widgets are allowed to eat touch-and-drag events
Product: [Plasma] plasmashell Reporter: Thiago Sueto <herzenschein>
Component: ContainmentAssignee: Marco Martin <notmart>
Status: RESOLVED INTENTIONAL    
Severity: minor CC: nate, plasma-bugs-null
Priority: NOR Keywords: usability, wayland-only
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=439920
https://bugs.kde.org/show_bug.cgi?id=439917
https://bugs.kde.org/show_bug.cgi?id=416909
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Thiago Sueto 2021-07-15 22:56:42 UTC
In many instances, attempting to select a widget by press-and-hold with the finger does not always work, but that's a different issue.

When it works, many times it is not possible to move the widget. This seems to only occur after it has been resized at least once, but that might be coincidental.

This seems to work correctly more often when Edit mode is active, but from what I gather it should always work.
Comment 1 Nate Graham 2021-08-03 17:08:19 UTC
Out of curiosity is this on X11 with the Wacom KCM installed?
Comment 2 Thiago Sueto 2021-08-03 17:16:28 UTC
No, this was on Wayland.
Comment 3 Nate Graham 2021-08-03 23:30:39 UTC
Can reproduce  by dragging a desktop widget with touch and then tapping an empty area of the wallpaper to hide the resize handles. The next time I press-and-hold-and-drag, it will fail. I need to "de-focus" it or something by touching the wallpaper a few times and then it will work again.
Comment 4 Nate Graham 2021-08-05 21:18:13 UTC
Actually I can no longer reproduce this. The first time I tap an empty area of the wallpaper to defocus the dragged widget, the text tap-and-hold to drag it works again. Resizing seems to make no difference.

I do note that I went into tablet mode and exited it again. Can you still reproduce the issue after entering and exiting tablet mode?
Comment 5 Thiago Sueto 2021-08-11 05:34:32 UTC
(In reply to Nate Graham from comment #4)
> Actually I can no longer reproduce this. The first time I tap an empty area
> of the wallpaper to defocus the dragged widget, the text tap-and-hold to
> drag it works again. Resizing seems to make no difference.
> 
> I do note that I went into tablet mode and exited it again. Can you still
> reproduce the issue after entering and exiting tablet mode?

Nope, I can still reproduce it, tablet mode made no difference. I noticed one thing though. It occurs more often in the top area, like the search bar of the clipboard widget, or the text in the CPU widget, or the days/months/years section of the calendar widget.

Or perhaps this might have something to do with the elements inside each widget, seeing as the calendar is never dragged if you tap it in the middle but the clipboard widget is always dragged if you tap it in the middle. Moreover, the CPU widget is particularly bad for dragging compared to other widgets, the center and bottom areas have two elements.

It should be noted, however, that if I hold down on the borders/margins (and I do mean precisely that area), dragging *always* works, no matter the widget. It is as though it's working reliably because the borders/margins don't have elements in them, but I don't know the code to know if this is correct.
Comment 6 Nate Graham 2021-08-29 20:36:30 UTC
Can reproduce with the calendar widget in particular. I suspect this is going to be a widget-specific issue, because some of the widget's UI elements eat the event. Still, maybe there is a way to generically fix it...
Comment 7 Nate Graham 2025-10-17 18:50:04 UTC
Unfortunately we looked into this recently and there really isn't. :(