Add constructors · w3c/touch-events@219546b (original) (raw)

`@@ -266,7 +266,7 @@

Touch Interface

`

266

266

` attributes must not change.

`

267

267

`

`

268

268

``

269

``

`-

`

``

269

`+

`

270

270

`

readonly attribute long identifier

`

271

271

`

`

272

272

` An identification number for each touch point.

`

`@@ -352,6 +352,29 @@

Touch Interface

`

352

352

` the sensitivity in levels of pressure, may vary.

`

353

353

`

`

354

354

`

`

``

355

+

``

356

`+

`

``

357

`+

required long identifier

`

``

358

`+

Initializes the identifier property of the Touch object.

`

``

359

`+

required EventTarget target

`

``

360

`+

Initializes the identifier property of the Touch object.

`

``

361

`+

double screenX = 0

`

``

362

`+

Initializes the screenX property of the Touch object.

`

``

363

`+

double screenY = 0

`

``

364

`+

Initializes the screenY property of the Touch object.

`

``

365

`+

double pageX = 0

`

``

366

`+

Initializes the pageX and clientX properties of the Touch object.

`

``

367

`+

double pageY = 0

`

``

368

`+

Initializes the pageY and clientY properties of the Touch object.

`

``

369

`+

float radiusX = 0

`

``

370

`+

Initializes the radiusX property of the Touch object.

`

``

371

`+

float radiusY = 0

`

``

372

`+

Initializes the radiusY property of the Touch object.

`

``

373

`+

float rotationAngle = 0

`

``

374

`+

Initializes the rotationAngle property of the Touch object.

`

``

375

`+

float force = 0

`

``

376

`+

Initializes the force property of the Touch object.

`

``

377

`+

`

355

378

`

`

356

379

``

357

380

`

`

`@@ -393,7 +416,7 @@

TouchEvent Interface

`

393

416

` initialized, its attributes must not change.

`

394

417

`

`

395

418

``

396

``

`-

`

``

419

`+

`

397

420

`

readonly attribute TouchList touches

`

398

421

`

`

399

422

` a list of Touch objects for every point of contact currently

`

`@@ -445,6 +468,23 @@

TouchEvent Interface

`

445

468

`

`

446

469

`

`

447

470

``

``

471

`+

`

``

472

`+

sequence<Touch> touches = []

`

``

473

`+

Initializes the touches property of the TouchEvent object with each element from the sequence.

`

``

474

`+

sequence<Touch> targetTouches = []

`

``

475

`+

Initializes the touches property of the TouchEvent object with each element from the sequence.

`

``

476

`+

sequence<Touch> changedTouches = []

`

``

477

`+

Initializes the touches property of the TouchEvent object with each element from the sequence.

`

``

478

`+

boolean altKey

`

``

479

`+

Initializes the altKey property of the TouchEvent object.

`

``

480

`+

boolean metaKey

`

``

481

`+

Initializes the metaKey property of the TouchEvent object.

`

``

482

`+

boolean ctrlKey

`

``

483

`+

Initializes the ctrlKey property of the TouchEvent object.

`

``

484

`+

boolean shiftKey

`

``

485

`+

Initializes the shiftKey property of the TouchEvent object.

`

``

486

`+

`

``

487

+

448

488

`

`

449

489

`

TouchEvent Implementer's Note

`

450

490

`

`

`@@ -781,8 +821,8 @@

Extensions to the Document Interface

`

781

821

` can use it to initialize the properties of a TouchEvent object,

`

782

822

` including its TouchList properties (which can be initialized

`

783

823

` with values returned from createTouchList). The

`

784

``

`-

initTouchEvent method is not yet standardized, but it may appear

`

785

``

`-

in some form in a future specification.

`

``

824

`+

initTouchEvent method is not yet standardized and will

`

``

825

`+

eventually be superceded by the TouchEvent constructor.

`

786

826

`

`

787

827

`

`

788

828

``