MCPcopy Create free account
hub / github.com/ScrapeGraphAI/scrapecraft / handleMouseMove

Function handleMouseMove

frontend/src/components/Layout/SplitView.tsx:14–23  ·  view source on GitHub ↗
(e: React.MouseEvent)

Source from the content-addressed store, hash-verified

12 };
13
14 const handleMouseMove = (e: React.MouseEvent) => {
15 if (!isDragging) return;
16
17 const container = e.currentTarget;
18 const rect = container.getBoundingClientRect();
19 const x = e.clientX - rect.left;
20 const percentage = (x / rect.width) * 100;
21
22 setSplitPosition(Math.min(Math.max(percentage, 20), 80));
23 };
24
25 const handleMouseUp = () => {
26 setIsDragging(false);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected