浏览代码

Fix: Correctly label paramiters of new interface.

duncan law 6 年之前
父节点
当前提交
2e8e0e5bec
共有 1 个文件被更改,包括 16 次插入8 次删除
  1. 16 8
      src/Events/pointerEvents.ts

+ 16 - 8
src/Events/pointerEvents.ts

@@ -118,14 +118,22 @@ export class PointerInfo extends PointerInfoBase {
 
 /**
  * Data relating to a touch event on the screen.
- * @param x X coordinate of touch.
- * @param y Y coordinate of touch.
- * @param pointerId Id of touch. Unique for each finger.
- * @param type Event type passed from DOM.
  */
 export interface PointerTouch {
-  x: number;
-  y: number;
-  pointerId: number;
-  type: any;
+    /**
+     * X coordinate of touch.
+     */
+    x: number;
+    /**
+     * @param y Y coordinate of touch.
+     */
+    y: number;
+    /**
+     * @param pointerId Id of touch. Unique for each finger.
+     */
+    pointerId: number;
+    /**
+     * @param type Event type passed from DOM.
+     */
+    type: any;
 }