소스 검색

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;
 }