1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-08-12 16:14:37 +02:00

Housekeeping

This commit is contained in:
Antonio Laguna
2017-04-29 23:02:31 +02:00
parent 7f3af9672c
commit 48b40c6ae9

View File

@@ -114,7 +114,7 @@ export default class Touch {
const info = Touch.normalizeEventInfo(event);
if (event.touches.length == 1) {
if (event.touches.length === 1) {
this.startX_ = info.x;
this.startY_ = info.y;
this.endX_ = info.x;
@@ -185,9 +185,9 @@ export default class Touch {
}
/**
* Get X,Y coordinates from touchs pointers
* Get X,Y coordinates from touch pointers.
* @param {Event} event
* @return {array}
* @return {Object}
*/
static getTouchCoordinates(event) {
return [