@aperture-browser/session-react 0.0.0-nightly.172.78cceab009e7 → 0.0.0-nightly.176.94b599d32d4b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +13 -6
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -5218,7 +5218,7 @@ function eventLabel(event) {
|
|
|
5218
5218
|
default: return event.kind;
|
|
5219
5219
|
}
|
|
5220
5220
|
}
|
|
5221
|
-
/** Pointer moves
|
|
5221
|
+
/** Pointer moves, wheel turns and keys no further apart than this are one run of them. */
|
|
5222
5222
|
const RUN_GAP_MS = 300;
|
|
5223
5223
|
/** The stretches the edit sped up or cut, in the time of the video that plays. */
|
|
5224
5224
|
function stretches(timeline, raw) {
|
|
@@ -5263,11 +5263,13 @@ function Track({ duration, time, timeline, raw, onSeek }) {
|
|
|
5263
5263
|
const span = (event) => raw ? [event.at_ms, event.end_ms] : [event.edited_at_ms, event.edited_end_ms];
|
|
5264
5264
|
const events = timeline?.events ?? [];
|
|
5265
5265
|
const calls = events.filter((event) => event.kind === "call");
|
|
5266
|
-
const
|
|
5267
|
-
"call",
|
|
5266
|
+
const runKinds = [
|
|
5268
5267
|
"move",
|
|
5269
|
-
"wheel"
|
|
5270
|
-
|
|
5268
|
+
"wheel",
|
|
5269
|
+
"key",
|
|
5270
|
+
"input"
|
|
5271
|
+
];
|
|
5272
|
+
const marks = events.filter((event) => event.kind !== "call" && !runKinds.includes(event.kind));
|
|
5271
5273
|
const runs = (kind, label) => {
|
|
5272
5274
|
const found = [];
|
|
5273
5275
|
for (const event of events) {
|
|
@@ -5283,7 +5285,12 @@ function Track({ duration, time, timeline, raw, onSeek }) {
|
|
|
5283
5285
|
}
|
|
5284
5286
|
return found;
|
|
5285
5287
|
};
|
|
5286
|
-
const moves = [
|
|
5288
|
+
const moves = [
|
|
5289
|
+
...runs("move", "pointer moves"),
|
|
5290
|
+
...runs("wheel", "scroll"),
|
|
5291
|
+
...runs("key", "typing"),
|
|
5292
|
+
...runs("input", "input")
|
|
5293
|
+
];
|
|
5287
5294
|
const marked = timeline === void 0 ? [] : stretches(timeline, raw);
|
|
5288
5295
|
const msAt = (clientX) => {
|
|
5289
5296
|
const box = trackRef.current?.getBoundingClientRect();
|