mirror of
https://github.com/webslides/WebSlides.git
synced 2025-08-12 16:14:37 +02:00
Housekeeping
This commit is contained in:
@@ -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 [
|
||||
|
Reference in New Issue
Block a user