Giter Site home page Giter Site logo

Tap Drag Lock Timeout about xf86-input-mtrack HOT 6 OPEN

p2rkw avatar p2rkw commented on May 26, 2024
Tap Drag Lock Timeout

from xf86-input-mtrack.

Comments (6)

p2rkw avatar p2rkw commented on May 26, 2024

Please test this branch: https://github.com/p2rkw/xf86-input-mtrack/tree/tap_drag_tiemout

I hardcoded drag lock time to 500 ms, but it could potentially be infinite, which means additional tap will be needed to break drag mode.

from xf86-input-mtrack.

CapSel avatar CapSel commented on May 26, 2024

Works excellent!
libinput uses hardcoded 500ms.
Is there a way to disable keyboard cursor arrows based window movement?

from xf86-input-mtrack.

p2rkw avatar p2rkw commented on May 26, 2024

New commits, please test, and let me know about issues before I push to master.

from xf86-input-mtrack.

CapSel avatar CapSel commented on May 26, 2024

Now: Cursor movement is disabled but the cross arrows are visible and window (in KDE) is semi-transparent = waiting for drag finish.

Now and previous version of this branch:
There is also a problem with clicking before drag - no matter how fast I try to tap to drag there is always double click and drag. Is it possible to wait with "release" of the button for some time (maybe 150ms) to see if user decides to tap again or drag?

from xf86-input-mtrack.

p2rkw avatar p2rkw commented on May 26, 2024

Now: Cursor movement is disabled but the cross arrows are visible and window (in KDE) is semi-transparent = waiting for drag finish.

I don't fully understand: does it mean my latest changes disable your cursor movement?

Now and previous version of this branch:
There is also a problem with clicking before drag - no matter how fast I try to tap to drag there is always double click and drag. Is it possible to wait with "release" of the button for some time (maybe 150ms) to see if user decides to tap again or drag?

I think I can tweak code to support that, but it will require some delay for tap clicks. See #50

from xf86-input-mtrack.

CapSel avatar CapSel commented on May 26, 2024

When I start drag mouse cursor is as a 4-way-arrows, window is semi-transparent.

If I finish drag by waiting 500ms:

  • with previous version: mouse cursor stays 4-way-arrows, window is still semi-transparent, I can use arrow keys from keyboard to move window. Tapping or enter finishes drag.
  • with current version: mouse cursor stays 4-way-arrows, window is still semi-transparent, I can't use arrow keys from keyboard to move window. Tapping finishes drag.

from xf86-input-mtrack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.