chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b68985
)
script: dragging: Make this hex
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 5 Jul 2021 19:58:29 +0000
(20:58 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 6 Jul 2021 00:25:40 +0000
(
01:25
+0100)
In case we every want to add more. (We don't right now, it turns
out.)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
templates/script.ts
patch
|
blob
|
history
diff --git
a/templates/script.ts
b/templates/script.ts
index 5c45c7a1f9231ceb9f3ee67305736ec523c19298..a8fffcd10d9c3ed00057daea3886c0683e13a8b5 100644
(file)
--- a/
templates/script.ts
+++ b/
templates/script.ts
@@
-802,11
+802,11
@@
type DragInfo = {
}
enum DRAGGING { // bitmask
- NO = 0,
- MAYBE_GRAB = 1,
- MAYBE_UNGRAB = 2,
- YES = 4,
- RAISED = 8,
+ NO = 0
x00
,
+ MAYBE_GRAB =
0x0
1,
+ MAYBE_UNGRAB =
0x0
2,
+ YES =
0x0
4,
+ RAISED =
0x0
8,
};
var drag_pieces : DragInfo[] = [];