mirror of
https://github.com/webslides/WebSlides.git
synced 2025-08-13 16:45:01 +02:00
Housekeeping
This commit is contained in:
@@ -114,7 +114,7 @@ export default class Touch {
|
|||||||
|
|
||||||
const info = Touch.normalizeEventInfo(event);
|
const info = Touch.normalizeEventInfo(event);
|
||||||
|
|
||||||
if (event.touches.length == 1) {
|
if (event.touches.length === 1) {
|
||||||
this.startX_ = info.x;
|
this.startX_ = info.x;
|
||||||
this.startY_ = info.y;
|
this.startY_ = info.y;
|
||||||
this.endX_ = info.x;
|
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
|
* @param {Event} event
|
||||||
* @return {array}
|
* @return {Object}
|
||||||
*/
|
*/
|
||||||
static getTouchCoordinates(event) {
|
static getTouchCoordinates(event) {
|
||||||
return [
|
return [
|
||||||
|
Reference in New Issue
Block a user