Bug 473848

Summary: The cursor in vim running in konsole should not move if I accidentally touch the laptop's touchpad
Product: [Applications] konsole Reporter: ak-su
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED NOT A BUG    
Severity: minor CC: fanzhuyifan, kde, nate
Priority: NOR    
Version: 23.08.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

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