iberianpig / fusuma

Multitouch gestures with libinput driver on Linux
MIT License
3.58k stars 146 forks source link

Three finger drag: "Can't make continuous selection/drag if lift the fingers for like one second" #285

Open vathanak-mao opened 1 year ago

vathanak-mao commented 1 year ago

Describe the bug It doesn't allow me to lift my fingers for a second then continue the selection. This must be allowed because sometimes we can't make a long drag or selection with a one go on a small trackpad.

To Reproduce Steps to reproduce the behavior:

  1. Start selecting a text with 3 fingers from left to right
  2. Stop and left the fingers immediately for about one second
  3. Start the selection again with 3 fingers from left to right

Expected behavior The text selected from the first step and third step should be all selected. But, only the text from the third step is selected.

Versions

PASTE OUTPUT OF `$ fusuma --version`
I, [2023-02-21T17:30:59.592141 #304021]  INFO -- : reload config: /home/vathanak/.config/fusuma/config.yml
I, [2023-02-21T17:30:59.769425 #304021]  INFO -- : ---------------------------------------------
I, [2023-02-21T17:30:59.769742 #304021]  INFO -- : Fusuma: 2.5.1
I, [2023-02-21T17:30:59.774107 #304021]  INFO -- : libinput: 1.22.1
I, [2023-02-21T17:30:59.774158 #304021]  INFO -- : ruby 2.7.0p0
I, [2023-02-21T17:30:59.775354 #304021]  INFO -- : OS: Linux 5.15.0-60-generic #66~20.04.1-Ubuntu SMP Wed Jan 25 09:41:30 UTC 2023
I, [2023-02-21T17:30:59.776654 #304021]  INFO -- : Distribution: Ubuntu 20.04.5 LTS \n \l
I, [2023-02-21T17:30:59.777593 #304021]  INFO -- : Desktop session: ubuntu x11
I, [2023-02-21T17:30:59.777624 #304021]  INFO -- : ---------------------------------------------
I, [2023-02-21T17:30:59.777641 #304021]  INFO -- : Enabled Plugins: 
I, [2023-02-21T17:30:59.777786 #304021]  INFO -- :   Fusuma::Plugin::Buffers::AppmatcherBuffer
I, [2023-02-21T17:30:59.777811 #304021]  INFO -- :   Fusuma::Plugin::Buffers::GestureBuffer
I, [2023-02-21T17:30:59.777825 #304021]  INFO -- :   Fusuma::Plugin::Buffers::KeypressBuffer
I, [2023-02-21T17:30:59.777841 #304021]  INFO -- :   Fusuma::Plugin::Buffers::TapBuffer
I, [2023-02-21T17:30:59.777865 #304021]  INFO -- :   Fusuma::Plugin::Buffers::TimerBuffer
I, [2023-02-21T17:30:59.777890 #304021]  INFO -- :   Fusuma::Plugin::Detectors::AppmatcherDetector
I, [2023-02-21T17:30:59.777912 #304021]  INFO -- :   Fusuma::Plugin::Detectors::HoldDetector
I, [2023-02-21T17:30:59.777932 #304021]  INFO -- :   Fusuma::Plugin::Detectors::KeypressDetector
I, [2023-02-21T17:30:59.777956 #304021]  INFO -- :   Fusuma::Plugin::Detectors::PinchDetector
I, [2023-02-21T17:30:59.777980 #304021]  INFO -- :   Fusuma::Plugin::Detectors::RotateDetector
I, [2023-02-21T17:30:59.778004 #304021]  INFO -- :   Fusuma::Plugin::Detectors::SwipeDetector
I, [2023-02-21T17:30:59.778019 #304021]  INFO -- :   Fusuma::Plugin::Detectors::TapDetector
I, [2023-02-21T17:30:59.778032 #304021]  INFO -- :   Fusuma::Plugin::Events::Records::AppmatcherRecord
I, [2023-02-21T17:30:59.778044 #304021]  INFO -- :   Fusuma::Plugin::Events::Records::ContextRecord
I, [2023-02-21T17:30:59.778057 #304021]  INFO -- :   Fusuma::Plugin::Events::Records::GestureRecord
I, [2023-02-21T17:30:59.778069 #304021]  INFO -- :   Fusuma::Plugin::Events::Records::IndexRecord
I, [2023-02-21T17:30:59.778082 #304021]  INFO -- :   Fusuma::Plugin::Events::Records::KeypressRecord
I, [2023-02-21T17:30:59.778095 #304021]  INFO -- :   Fusuma::Plugin::Events::Records::TextRecord
I, [2023-02-21T17:30:59.778121 #304021]  INFO -- :   Fusuma::Plugin::Executors::CommandExecutor
I, [2023-02-21T17:30:59.778135 #304021]  INFO -- :   Fusuma::Plugin::Executors::SendkeyExecutor
I, [2023-02-21T17:30:59.778160 #304021]  INFO -- :   Fusuma::Plugin::Filters::KeypressFilter
I, [2023-02-21T17:30:59.778186 #304021]  INFO -- :   Fusuma::Plugin::Filters::LibinputDeviceFilter
I, [2023-02-21T17:30:59.778213 #304021]  INFO -- :   Fusuma::Plugin::Inputs::AppmatcherInput
I, [2023-02-21T17:30:59.778241 #304021]  INFO -- :   Fusuma::Plugin::Inputs::LibinputCommandInput
I, [2023-02-21T17:30:59.778268 #304021]  INFO -- :   Fusuma::Plugin::Inputs::TimerInput
I, [2023-02-21T17:30:59.778296 #304021]  INFO -- :   Fusuma::Plugin::Parsers::AppmatcherParser
I, [2023-02-21T17:30:59.778323 #304021]  INFO -- :   Fusuma::Plugin::Parsers::KeypressParser
I, [2023-02-21T17:30:59.778351 #304021]  INFO -- :   Fusuma::Plugin::Parsers::LibinputGestureParser
I, [2023-02-21T17:30:59.778378 #304021]  INFO -- :   Fusuma::Plugin::Parsers::TapParser
I, [2023-02-21T17:30:59.778408 #304021]  INFO -- : ---------------------------------------------
iberianpig commented 1 year ago

Thanks for reporting.

Is this common behavior on other OS? Is it possible to reselect previously selected characters after removing all fingers from the touchpad?

vathanak-mao commented 1 year ago

Thank you iberianpig for replying.

I don't know whether it's commom on Windows but yes, it is on macOS cause I've been a Mac user for years. Now, i'm using this program https://github.com/marsqing/libinput-three-finger-drag and it works flawlessly and it feels like i'm still using macOS. But, I like your project more and I don't want to use two programs at the same time.

Reselecting the previously selected characters (also redragging the prevously dragged window or file in nautilus) after removing all fingers from the touchpad should be possible only if the duration is like one second (or configurable). I hope you consider this the correct behavior too.

iberianpig commented 1 year ago

I want to make it possible to continue the dragging as much as possible in future updates. Appreciate the good hint. Grateful for the feedback from users like you.