Bug 488146 - Hover mouse behavior on touchscreen Plasma Desktop
Summary: Hover mouse behavior on touchscreen Plasma Desktop
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray widget (show other bugs)
Version: 6.0.5
Platform: NixOS Linux
: VLO minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-07 06:42 UTC by m1vri31c
Modified: 2024-06-16 11:25 UTC (History)
3 users (show)

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


Attachments
Hover mouse behaviour on Touchscreen (3.52 MB, video/webm)
2024-06-08 06:12 UTC, m1vri31c
Details

Note You need to log in before you can comment on or make changes to this bug.
Description m1vri31c 2024-06-07 06:42:45 UTC
SUMMARY
With a mouse, it is possible to hover the cursor over something to display tooltips or other functions. This is impossible on touchscreens since there is no information about hovering a finger over it, but this hover behavior is often activated after using the touchscreen.

STEPS TO REPRODUCE
1. Add system tray
2. Tap any system tray item then tap it again to hide the panel that appears.

OBSERVED RESULT
Tooltip for the system tray item appears. This does not just apply to the system tray but it is the easiest way to demonstrate the behavior.

EXPECTED RESULT
Panel disappears and no tooltip appears.

SOFTWARE/OS VERSIONS
NixOS 24.11 (unstable channel)
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0 
Qt Version: 6.7.1
Comment 1 Nate Graham 2024-06-07 15:03:32 UTC
I cannot reproduce the issue as described when I do it with my 2-in-1 touchscreen laptop. Please attach a phone video that shows you using your finger to reproduce the issue. Thanks!
Comment 2 m1vri31c 2024-06-08 06:12:09 UTC
Created attachment 170246 [details]
Hover mouse behaviour on Touchscreen
Comment 3 Nate Graham 2024-06-12 14:52:30 UTC
Thanks. This looks strange, and I cannot reproduce the issue as shown in thevideo on my touchscreen laptop on Wayland . Are you using X11 or Wayland?
Comment 4 m1vri31c 2024-06-14 10:02:04 UTC
(In reply to Nate Graham from comment #3)
> Thanks. This looks strange, and I cannot reproduce the issue as shown in
> thevideo on my touchscreen laptop on Wayland . Are you using X11 or Wayland?

Wayland
Comment 5 Nate Graham 2024-06-14 20:46:08 UTC
Ok, I just made it happen once, but now I can't get it to happen again.
Comment 6 Zamundaaa 2024-06-14 21:43:23 UTC
KWin doesn't do tooltips or touch event processing, that's done by the toolkit and/or apps. In this case it might be a touch handler for system tray things doing something odd.
Comment 7 m1vri31c 2024-06-16 08:57:56 UTC
It is definitely not tapping something twice that does it. It's just that the tooltip doesn't open if the tray is open. 

1. Open the Audio Volume tray item with mouse
2. Make sure to move the mouse pointer to somewhere else on the screen
3. Tap the Audio Volume system tray item with a touchscreen tap
= the tooltip will still appear.

This is also not just a system tray problem, that was just the easily reproducible example I gave. Another example:
1. Right click to open the context menu for an icon in Icons-only Task Manager
2. Make sure to move the mouse pointer to somewhere else on the screen
3. Tap the same icon with a touchscreen tap to close the context menu
= the "Show small window previews when hovering over Tasks" effect is activated for that icon if you have that enabled.

In Dolphin:
1. Find a folder with enough items in it to scroll
2. Scroll using touchscreen; release finger
= An info panel will appear for you were touching when you were scrolling, as though you were hovering your mouse over it

In Signal (I'm including a non-KDE app for thoroughness, obviously this could be an unrelated issue):
1. Scroll through messages using touchscreen, taking note of where you first put your finger down
2. Release finger
= the message in the position you first finger to scroll will show options (3 dot menu, reactions, reply) that would appear if you were hovering mouse over it


Additional Info:
I am using Microsoft Surface Pro 7 which uses the ITPS touch driver and a custom kernel.
Comment 8 m1vri31c 2024-06-16 08:59:59 UTC
(In reply to m1vri31c from comment #7)
> It is definitely not tapping something twice that does it. It's just that
> the tooltip doesn't open if the tray is open. 
> 
> 1. Open the Audio Volume tray item with mouse
> 2. Make sure to move the mouse pointer to somewhere else on the screen
> 3. Tap the Audio Volume system tray item with a touchscreen tap
> = the tooltip will still appear.
> 
> This is also not just a system tray problem, that was just the easily
> reproducible example I gave. Another example:
> 1. Right click to open the context menu for an icon in Icons-only Task
> Manager
> 2. Make sure to move the mouse pointer to somewhere else on the screen
> 3. Tap the same icon with a touchscreen tap to close the context menu
> = the "Show small window previews when hovering over Tasks" effect is
> activated for that icon if you have that enabled.
> 
> In Dolphin:
> 1. Find a folder with enough items in it to scroll
> 2. Scroll using touchscreen; release finger
> = An info panel will appear for you were touching when you were scrolling,
> as though you were hovering your mouse over it
> 
> In Signal (I'm including a non-KDE app for thoroughness, obviously this
> could be an unrelated issue):
> 1. Scroll through messages using touchscreen, taking note of where you first
> put your finger down
> 2. Release finger
> = the message in the position you first finger to scroll will show options
> (3 dot menu, reactions, reply) that would appear if you were hovering mouse
> over it
> 
> 
> Additional Info:
> I am using Microsoft Surface Pro 7 which uses the ITPS touch driver and a
> custom kernel.

The Signal example may not actually be a bug.
Comment 9 m1vri31c 2024-06-16 11:25:52 UTC
I wanted to test in Firefox since that has generally pretty good touchscreen support. Firefox has its own mouse hover issue – the mouse is hidden upon any touchscreen input Plasma, and in Firefox that hidden mouse will be seen as "hovering" despite no indication of it being there. However there was no sign of touchscreen input triggering "hover mouse" like in the KDE app examples.