Skip to content

[FEAT] Trackpad mode for touchscreens #14

@aptalca

Description

@aptalca

Is this a new feature request?

  • I have searched the existing issues

Wanted change

Implement a new touchscreeen mode that can be enabled or switched to where the touchscreen is treated as a trackpad.

  • Cursor position would be static
  • Placing finger anywhere on the screen and swiping up by 100 pixels would move the cursor up by 100 pixels.
  • Tapping on the screen would register a click at the current cursor position (rather than the finger tap spot).
  • Tap and hold would register a right click action.
  • Two finger moves would register a scroll action

Reason for change

Current touchscreen method registers a click at the tap or touch location on the screen, which is very difficult on smaller screens like a small tablet or a phone. Double click is also very difficult as the taps are likely registered in different spots.

The trackpad mode would provide very precise actions on touchscreen devices, especially on smaller screens.

Bonus: The trackpad mode also allows for displaying part of a screen on a small screen device and scrolling left and right as well as up and down as needed, following the cursor, so one can have a larger resolution or desktop size than what the small device allows.

Proposed code change

Here's some relevant info: https://bbs.archlinux.org/viewtopic.php?id=283077

Some more relevant info: https://www.oesf.org/forum/index.php?topic=35185.0

Video demonstration: https://www.youtube.com/watch?v=bsJn3eMvG7w

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions