move is a mode: grab, drag, done
This commit is contained in:
parent
b0688bc30b
commit
c3f998f17a
3 changed files with 112 additions and 15 deletions
|
|
@ -121,6 +121,18 @@ Singleton {
|
|||
});
|
||||
}
|
||||
|
||||
// Hand a window to the finger. While grabbed, one-finger drags move it;
|
||||
// `drop` ends the mode. This is Move as a *mode* rather than a computed
|
||||
// geometry — the three-finger carry that used to do it lost a race with
|
||||
// the three-finger tap every time, so it is entered on purpose now.
|
||||
function grab(id) {
|
||||
root.scene("grab", { id: id });
|
||||
}
|
||||
|
||||
function drop() {
|
||||
root.scene("drop", {});
|
||||
}
|
||||
|
||||
function raise(id) {
|
||||
root.scene("raise", { id: id });
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue