Skip to content

lua callback for mouse Drag? #3181

Answered by dmaluka
klauweg asked this question in Q&A
Mar 17, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Actually I've realized it does work with onAction callbacks as well. You can try:

function onMouseDrag(bp)
    micro.InfoBar():Message("dragged")
end

function onMouseRelease(bp)
    micro.InfoBar():Message("released")
end

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dmaluka
Comment options

dmaluka Mar 17, 2024
Collaborator

Answer selected by klauweg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants