webrtc-streaming-core
Advanced tools
Comparing version 1.1.31 to 1.1.32
export declare class DesktopTouch { | ||
private onGoingTouchs; | ||
SendFunc: ((data: string) => Promise<void>); | ||
disable: boolean; | ||
constructor(Sendfunc: ((data: string) => Promise<void>)); | ||
@@ -5,0 +6,0 @@ handleIncomingData(data: string): void; |
@@ -20,2 +20,3 @@ "use strict"; | ||
this.SendFunc = Sendfunc; | ||
this.disable = false; | ||
document.addEventListener('touchstart', this.handleStart.bind(this)); | ||
@@ -61,2 +62,4 @@ document.addEventListener('touchend', this.handleEnd.bind(this)); | ||
evt.preventDefault(); | ||
if (this.disable) | ||
return; | ||
const touches = evt.touches; | ||
@@ -134,2 +137,4 @@ for (let i = 0; i < touches.length; i++) { | ||
evt.preventDefault(); | ||
if (this.disable) | ||
return; | ||
const touches = evt.changedTouches; | ||
@@ -150,2 +155,4 @@ for (let i = 0; i < touches.length; i++) { | ||
evt.preventDefault(); | ||
if (this.disable) | ||
return; | ||
const touches = evt.changedTouches; | ||
@@ -165,2 +172,4 @@ for (let i = 0; i < touches.length; i++) { | ||
evt.preventDefault(); | ||
if (this.disable) | ||
return; | ||
(0, log_1.Log)(log_1.LogLevel.Debug, 'touchcancel.'); | ||
@@ -167,0 +176,0 @@ const touches = evt.changedTouches; |
@@ -10,2 +10,3 @@ import { AxisType } from "../models/hid.model"; | ||
disableMouse: boolean; | ||
disableTouch(val: boolean): void; | ||
private Screen; | ||
@@ -12,0 +13,0 @@ private video; |
@@ -12,2 +12,5 @@ "use strict"; | ||
class HID { | ||
disableTouch(val) { | ||
this.platform.disable = val; | ||
} | ||
constructor(platform, videoElement, Sendfunc) { | ||
@@ -14,0 +17,0 @@ this.prev_buttons = new Map(); |
export declare class MobileTouch { | ||
private onGoingTouchs; | ||
disable: boolean; | ||
SendFunc: ((data: string) => Promise<void>); | ||
@@ -4,0 +5,0 @@ constructor(Sendfunc: ((data: string) => Promise<void>)); |
@@ -19,2 +19,4 @@ "use strict"; | ||
this.handleStart = (evt) => { | ||
if (this.disable) | ||
return; | ||
const touches = evt.changedTouches; | ||
@@ -26,2 +28,4 @@ for (let i = 0; i < touches.length; i++) { | ||
this.handleEnd = (evt) => { | ||
if (this.disable) | ||
return; | ||
const touches = evt.changedTouches; | ||
@@ -34,2 +38,4 @@ for (let i = 0; i < touches.length; i++) { | ||
this.handleMove = (evt) => __awaiter(this, void 0, void 0, function* () { | ||
if (this.disable) | ||
return; | ||
const touches = evt.touches; | ||
@@ -85,2 +91,3 @@ for (let i = 0; i < touches.length; i++) { | ||
this.SendFunc = Sendfunc; | ||
this.disable = false; | ||
document.addEventListener('touchstart', this.handleStart.bind(this)); | ||
@@ -87,0 +94,0 @@ document.addEventListener('touchend', this.handleEnd.bind(this)); |
{ | ||
"name": "webrtc-streaming-core", | ||
"version": "1.1.31", | ||
"version": "1.1.32", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/app.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
197351
2991