decord/source/utils/web/WindowInteractingUtils.tsx

25 lines
737 B
TypeScript
Raw Normal View History

// Module ID: 5637
// Function ID: 5638
// Name: WindowInteractingUtils
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: clearCurrentlyInteractingWindowId, getCurrentlyInteractingWindowId, setCurrentlyInteractingWindowId
// Module 5637 (WindowInteractingUtils)
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
2026-07-23 10:11:24 +00:00
let c0 = null;
const result = size.fileFinishedImporting("utils/web/WindowInteractingUtils.tsx");
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
export const INTERACTION_EVENTS = ["click", "mousedown", "mouseup", "keydown", "keyup", "keypress", "contextmenu"];
2026-07-20 16:05:17 +00:00
export function getCurrentlyInteractingWindowId() {
2026-07-23 10:11:24 +00:00
return c0;
2026-07-20 16:05:17 +00:00
}
export function setCurrentlyInteractingWindowId(arg0) {
c0 = arg0;
2026-07-20 16:05:17 +00:00
}
export function clearCurrentlyInteractingWindowId(arg0) {
2026-07-23 10:11:24 +00:00
if (c0 === arg0) {
c0 = null;
2026-07-20 16:05:17 +00:00
}
}