webrtc-streaming-core
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -289,4 +289,14 @@ "use strict"; | ||
} | ||
(0, log_1.Log)(log_1.LogLevel.Debug, `current touch ${identifier}: ${curr_touch.clientX} ${curr_touch.clientY}`); | ||
(0, log_1.Log)(log_1.LogLevel.Debug, `prev touch ${identifier}: ${prev_touch.clientX} ${prev_touch.clientY}`); | ||
const diff = { | ||
movementX: Math.round(curr_touch.clientX - prev_touch.clientX), | ||
movementY: Math.round(curr_touch.clientY - prev_touch.clientY) | ||
}; | ||
// one finger only | ||
if (identifier == 0) { | ||
let code = keys_model_1.EventCode.MouseMoveRel; | ||
this.SendFunc((new keys_model_2.HIDMsg(code, { | ||
dX: diff.movementX, | ||
dY: diff.movementY, | ||
})).ToString()); | ||
} | ||
this.onGoingTouchs.set(identifier, this.copyTouch(curr_touch)); // swap in the new touch record | ||
@@ -293,0 +303,0 @@ } |
{ | ||
"name": "webrtc-streaming-core", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/app.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
126118
1977