MCPcopy Create free account
hub / github.com/error311/FileRise / cancelHoverPreview

Function cancelHoverPreview

public/js/fileListView.js:1034–1049  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1032
1033// Let other modules (drag/drop) kill the hover card instantly.
1034export function cancelHoverPreview() {
1035 try {
1036 if (hoverPreviewTimer) {
1037 clearTimeout(hoverPreviewTimer);
1038 hoverPreviewTimer = null;
1039 }
1040 } catch (e) {}
1041
1042 hoverPreviewActiveRow = null;
1043 hoverPreviewContext = null;
1044 hoverPreviewHoveringCard = false;
1045
1046 if (hoverPreviewEl) {
1047 hoverPreviewEl.style.display = 'none';
1048 }
1049}
1050
1051function isHoverPreviewDisabled() {
1052 if (window.disableHoverPreview === true) return true;

Callers 3

hideHoverPreviewFunction · 0.85
fileDragStartHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected