MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / clearDragState

Function clearDragState

frontend/app/tab/vtabbar.tsx:285–295  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

283 );
284
285 const clearDragState = () => {
286 stopScrollLoop();
287 if (dragSourceRef.current != null && !didResetHoverForDragRef.current) {
288 didResetHoverForDragRef.current = true;
289 setHoverResetVersion((version) => version + 1);
290 }
291 dragSourceRef.current = null;
292 setDragTabId(null);
293 setDropIndex(null);
294 setDropLineTop(null);
295 };
296
297 const reorder = (targetIndex: number) => {
298 const sourceTabId = dragSourceRef.current;

Callers 1

VTabBarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected