Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistent teardrop cursor on laptops with touchscreens, even when using external mouse/keyboard #10257

Open
mTrax- opened this issue Oct 17, 2024 · 0 comments
Labels
bug Something isn't working unconfirmed

Comments

@mTrax-
Copy link

mTrax- commented Oct 17, 2024

Hello,

I'm opening a bug report rather than a discussion as I believe the behavior is not as intended. If it turns out to be an error on my part, please accept my apologies.

Describe the Bug

I have a Collabora Online environment associated with Nextcloud via two containers. Everything works very well.
However, there's a blocking issue for my users related to the "teardrop" cursor when Collabora detects a touchscreen in the system.

All my users have laptops with touchscreens, and regardless of how the laptop is used (in standalone mode or on a docking station with screen/keyboard/mouse), the cursor displays a teardrop as if in tablet mode. From what I understand, it shouldn't display in this case.

Steps to Reproduce

Environment: laptop with touchscreen connected to a keyboard / mouse / screen. Nextcloud 30.0.1 and Collabora Online (coolwsd) 24.04.8.2

  1. Create a new document
  2. Observe the teardrop below the cursor

Expected Behavior

  • No teardrop when connected to a docking station.
  • Have an option in the interface to hide it for users who are in laptop touchscreen mode (but with laptop keyboard/mouse) and who don't want this "pustule".

Actual Behavior

  • Teardrop in all scenarios on this type of device.

Screenshots

If necessary for understanding the problem, I can add screenshots

Desktop

  • Collabora version: 24.04.8.2
  • OS and version: Windows 11
  • Browser and version: Chrome, Firefox, Edge, regardless of version.

Additional Context

This is a blocking element for the POC I'm currently setting up, and I'm looking for a way to disable it.
As there doesn't seem to be an option to manually display or hide it in the settings or via a keyboard shortcut, I searched the code and found two occurrences:

I wanted to confirm with you that there is any workaround to disable this "teardrop".

On my side, I tried modifying the following files in the container:

  • /usr/share/coolwsd/browser/dist/nextcloud/branding.css
  • /usr/share/coolwsd/browser/dist/nextcloud/branding-tablet.css
    as well as
  • /usr/share/coolwsd/browser/dist/branding-tablet.css
  • /usr/share/coolwsd/browser/dist/device-tablet.css

by forcing display: none via:

.text-selection-handle-start, .text-selection-handle-end {
    display: none !important;
}

This has been unsuccessful so far.

I know this may seem minor to block a POC, but unfortunately, the display of this teardrop on a standard desktop screen puts off those evaluating the solution.
Do you have any suggestions, or has anyone encountered this scenario before?

Thank you.

@mTrax- mTrax- added bug Something isn't working unconfirmed labels Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed
Projects
Status: No status
Development

No branches or pull requests

1 participant