File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- import EventTarget from './EventTarget .js' ;
1
+ import IEventTarget from './IEventTarget .js' ;
2
2
3
3
export default interface ITouchInit {
4
4
identifier : number ;
5
- target : EventTarget ;
5
+ target : IEventTarget ;
6
6
clientX ?: number ;
7
7
clientY ?: number ;
8
8
screenX ?: number ;
Original file line number Diff line number Diff line change 1
- import EventTarget from './EventTarget .js' ;
1
+ import IEventTarget from './IEventTarget .js' ;
2
2
import ITouchInit from './ITouchInit.js' ;
3
3
4
4
/**
5
5
*
6
6
*/
7
7
export default class Touch {
8
8
public readonly identifier : number ;
9
- public readonly target : EventTarget ;
9
+ public readonly target : IEventTarget ;
10
10
public readonly clientX : number ;
11
11
public readonly clientY : number ;
12
12
public readonly screenX : number ;
Original file line number Diff line number Diff line change 1
1
import Touch from '../../../src/event/Touch.js' ;
2
2
import ITouchEventInit from '../../../src/event/events/ITouchEventInit.js' ;
3
3
import TouchEvent from '../../../src/event/events/TouchEvent.js' ;
4
+ import Window from '../../../src/window/Window.js' ;
4
5
import { describe , it , expect } from 'vitest' ;
5
- import { HTMLElement } from '../../../src/index.js' ;
6
6
7
7
describe ( 'TouchEvent' , ( ) => {
8
8
describe ( 'constructor()' , ( ) => {
@@ -15,7 +15,7 @@ describe('TouchEvent', () => {
15
15
it ( 'Initializes properties' , ( ) => {
16
16
const touch = new Touch ( {
17
17
identifier : 0 ,
18
- target : new HTMLElement ( )
18
+ target : new Window ( ) . document . createElement ( 'div' )
19
19
} ) ;
20
20
21
21
const eventInit : ITouchEventInit = {
You can’t perform that action at this time.
0 commit comments