This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Usage: _="install Draggable(dragHandle: .titlebar in me)" | |
behavior Draggable(dragHandle) | |
init | |
if no dragHandle set the dragHandle to me | |
end | |
on pointerdown(clientX, clientY) from dragHandle | |
halt the event | |
trigger draggable:start -- hooks, e.g. for adding a drop shadow while dragging | |
measure my x, y |
OlderNewer