Panayiotis Lipiridis 4 年之前
父節點
當前提交
3bc80ea3a3
共有 1 個文件被更改,包括 24 次插入24 次删除
  1. 24 24
      src/constants.ts

+ 24 - 24
src/constants.ts

@@ -23,30 +23,30 @@ export const POINTER_BUTTON = {
   WHEEL: 1,
 };
 
-export const EVENT = {
-  BEFORE_UNLOAD: "beforeunload",
-  BLUR: "blur",
-  COPY: "copy",
-  CUT: "cut",
-  DRAG_OVER: "dragover",
-  DROP: "drop",
-  GESTURE_CHANGE: "gesturechange",
-  GESTURE_END: "gestureend",
-  GESTURE_START: "gesturestart",
-  HASHCHANGE: "hashchange",
-  KEYDOWN: "keydown",
-  KEYUP: "keyup",
-  MOUSE_MOVE: "mousemove",
-  PASTE: "paste",
-  POINTER_MOVE: "pointermove",
-  POINTER_UP: "pointerup",
-  RESIZE: "resize",
-  STATE_CHANGE: "statechange",
-  TOUCH_END: "touchend",
-  TOUCH_START: "touchstart",
-  UNLOAD: "unload",
-  WHEEL: "wheel",
-};
+export enum EVENT {
+  BEFORE_UNLOAD = "beforeunload",
+  BLUR = "blur",
+  COPY = "copy",
+  CUT = "cut",
+  DRAG_OVER = "dragover",
+  DROP = "drop",
+  GESTURE_CHANGE = "gesturechange",
+  GESTURE_END = "gestureend",
+  GESTURE_START = "gesturestart",
+  HASHCHANGE = "hashchange",
+  KEYDOWN = "keydown",
+  KEYUP = "keyup",
+  MOUSE_MOVE = "mousemove",
+  PASTE = "paste",
+  POINTER_MOVE = "pointermove",
+  POINTER_UP = "pointerup",
+  RESIZE = "resize",
+  STATE_CHANGE = "statechange",
+  TOUCH_END = "touchend",
+  TOUCH_START = "touchstart",
+  UNLOAD = "unload",
+  WHEEL = "wheel",
+}
 
 export const ENV = {
   TEST: "test",