Bug 473848 - The cursor in vim running in konsole should not move if I accidentally touch the laptop's touchpad
Summary: The cursor in vim running in konsole should not move if I accidentally touch ...
Status: RESOLVED NOT A BUG
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 23.08.0
Platform: Fedora RPMs Linux
: NOR minor
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-28 12:16 UTC by ak-su
Modified: 2024-03-19 20:52 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ak-su 2023-08-28 12:16:21 UTC
SUMMARY

The cursor in vim running in konsole should not move if I accidentally touch the laptop's touchpad

STEPS TO REPRODUCE

1. open konsole
2. open vim in konsole
3. open file in vim
4. make a two finger upward motion on the laptop's touchpad

OBSERVED RESULT

vim's cursor moves to a different location in the file

EXPECTED RESULT

vim's cursor should not move to a different location in the file

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Fedora 37
(available in About System)
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.9

ADDITIONAL INFORMATION

This issue is caused by some environment variable, as "env -i vi filename" fixes it.
Comment 1 ak-su 2023-09-18 09:19:21 UTC
Do you want me to go through the environment variables to see which one affects this?
Comment 2 ak-su 2023-09-30 13:27:19 UTC
This is a kludge to fix this issue:

unset TERM

vim still works but its cursor is not moving any more if I make two finger gestures on the touchpad.
Comment 3 fanzhuyifan 2023-12-17 06:30:41 UTC
This sounds like intended behavior -- some people may want to use the touchpad to scroll in vim, and you can disable it by unsetting TERM.
Comment 4 ak-su 2023-12-29 10:13:08 UTC
So basically you're saying bad UX is better than good UX? The cursor moves so fast it's of use to nobody.
Comment 5 usr_40476 2024-03-19 20:52:22 UTC
(In reply to ak-su from comment #4)
> So basically you're saying bad UX is better than good UX? The cursor moves
> so fast it's of use to nobody.

so this actually sort of happens in minecraft java, the touchpad will for some reason be far more sensitive since is counting how many times it receives the scroll intruction, and on a trackpads are really precise so it sends many small scroll instructions as opposed to computer mouse which uses larger increments and therefor send less scroll intructions to travel the same distance on-screen