talonvoice / beta

Issue tracker for the private Talon Beta
10 stars 0 forks source link

[linux] mouse drag/release not working #17

Closed aceslowman closed 4 years ago

aceslowman commented 4 years ago

Currently the mouse drag/release functionality is not working as expected. Interpreted as a click only. Seems to be related to the removal of (x,y) from ctrl.mouse_click().

Tested using the following:

def click_pos(m):
    word = m._words[0]
    start = (word.start + min((word.end - word.start) / 2, 0.100)) / 1000.0
    diff, pos = min([(abs(start - pos[2]), pos) for pos in mouse_history])
    return pos[:2]

def mouse_drag(m):
    x, y = click_pos(m)
    ctrl.mouse_click(down=True)

def mouse_release(m):
    x, y = click_pos(m)
    ctrl.mouse_click(up=True)

...
    "drag": mouse_drag,
    "drag release": mouse_release,
...

Currently using Talon 1023.
OS: Ubuntu 18.04.3 LTS

lunixbochs commented 4 years ago

fixed in 1026