cosmic-epoch icon indicating copy to clipboard operation
cosmic-epoch copied to clipboard

Touchpad: Text selection does not auto-scroll when dragging past the screen edge

Open nalladev opened this issue 1 month ago • 6 comments

Describe the bug When selecting text using the laptop’s touchpad, the text selection stops once my finger reaches the physical edge of the touchpad. At that point, the cursor stops moving on screen, so it never reaches the top or bottom edge of the window to trigger auto-scroll.

The issue is not that auto-scroll doesn’t work — it’s that the cursor can’t physically reach the screen edge using the touchpad alone. This makes it impossible to extend a text selection beyond the current view.

Using an external mouse works fine, as the pointer can continue to move and trigger auto-scrolling at the window edges.

To Reproduce

  1. Steps to reproduce the behavior:
  2. Open any app or document that requires scrolling (e.g. browser, text editor).
  3. Double-tap and hold (or click and hold) with the touchpad to start text selection.
  4. Drag your finger until it reaches the physical edge of the touchpad.
  5. Observe that the pointer stops moving before it reaches the screen edge.
  6. The selection cannot extend further.

Expected behavior The pointer should continue to move even when the finger reaches the physical edge of the touchpad — for example, by implementing touchpad edge motion (like in some other Linux distros). This would allow auto-scrolling to occur and make text selection smoother.

Actual behaviour The cursor stops moving as soon as the finger reaches the physical edge of the touchpad. Because of this, the pointer never reaches the screen edge, so auto-scrolling doesn’t get triggered — giving the impression that selection stops abruptly.

Screenshots

Desktop (please complete the following information):

  • OS: Pop!_OS 24.04

Additional context

nalladev avatar Oct 27 '25 07:10 nalladev

Maybe related to https://github.com/pop-os/cosmic-comp/issues/981. A good way to test would be to scroll manually a bit in the non-working direction, and then try doing this with the top or left screen edge.

git-f0x avatar Oct 27 '25 08:10 git-f0x

Maybe related to pop-os/cosmic-comp#981. A good way to test would be to scroll manually a bit in the non-working direction, and then try doing this with the top or left screen edge.

i don't understand what that means. do you have this issue with touch pad? If, could you test this.

nalladev avatar Oct 27 '25 14:10 nalladev

Actually, ignore that, since it seems to work fine with a mouse. I don't have a laptop with COSMIC installed currently, so I can't test.

git-f0x avatar Oct 27 '25 14:10 git-f0x

https://github.com/user-attachments/assets/e10f4bca-1dd5-4193-b2da-11ab46b31203

works fine for me!

parth-panara-1204 avatar Nov 03 '25 16:11 parth-panara-1204

@parth-panara-1204, @git-f0x After testing again, I realized my initial description was slightly inaccurate. The issue is not that the cursor stops when it reaches the screen edge — that part works correctly.

The real problem is that the touchpad itself stops sending movement when my finger reaches its physical edge, so the pointer never actually reaches the edge of the screen to trigger auto-scrolling.

In other words, the limitation is with touchpad motion range rather than the scrolling behavior itself.

nalladev avatar Nov 03 '25 17:11 nalladev

i remember that windows or maybe kde had this feature, where if i cant drag my pointer any further, the pointer will continue on that direction so long as i hold my finger.

is this what you're trying to say?

parth-panara-1204 avatar Nov 04 '25 03:11 parth-panara-1204

i remember that windows or maybe kde had this feature, where if i cant drag my pointer any further, the pointer will continue on that direction so long as i hold my finger.

is this what you're trying to say?

yes, if i cant drag my pointer any further because my finger reached the end of the touch-pad. The pointer will continue on that direction as long as i hold my finger. i'am used to this behaviour in windows.

nalladev avatar Nov 04 '25 18:11 nalladev

i guess in that case, this should be tagged "enhancement" rather than "bug"

parth-panara-1204 avatar Nov 05 '25 05:11 parth-panara-1204

i guess in that case, this should be tagged "enhancement" rather than "bug"

You're right — that makes sense. I’ve updated this to be a feature request. Thanks for pointing that out!

nalladev avatar Nov 05 '25 06:11 nalladev

Could someone please tag this as enhancement instead of bug? Thanks!

nalladev avatar Nov 05 '25 06:11 nalladev

Could someone please tag this as enhancement instead of bug? Thanks!

we don't have privilege to do that! you can change label by clicking on the "Labels" in the right side of all the comments.

parth-panara-1204 avatar Nov 05 '25 07:11 parth-panara-1204