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:
78d2754
)
make DRAGGING into an enum
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 7 Jul 2020 23:59:24 +0000
(
00:59
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 7 Jul 2020 23:59:24 +0000
(
00:59
+0100)
templates/script.ts
patch
|
blob
|
history
diff --git
a/templates/script.ts
b/templates/script.ts
index e61ec88cb72f502de01a9eb9401640b0a9d97a9f..01cfd2fba9e38e9d36c3c450a4a0dc6fc263ef60 100644
(file)
--- a/
templates/script.ts
+++ b/
templates/script.ts
@@
-136,11
+136,11
@@
function piece_element(base: string, piece: PieceId): SVGGraphicsElement | null
// ----- clicking/dragging pieces -----
-
const DRAGGING =
{ // bitmask
- NO
:
0,
- MAYBE_GRAB
:
1,
- MAYBE_UNGRAB
:
2,
- YES
:
4,
+
enum DRAGGING
{ // bitmask
+ NO
=
0,
+ MAYBE_GRAB
=
1,
+ MAYBE_UNGRAB
=
2,
+ YES
=
4,
};
var drag_uelem : SVGGraphicsElement | null;