MCPcopy Create free account
hub / github.com/core7s/react-design-editor / handleDragIn

Function handleDragIn

src/components/Dropzone/DropZone.tsx:34–41  ·  view source on GitHub ↗
(e: DragEvent)

Source from the content-addressed store, hash-verified

32 e.stopPropagation()
33 }
34 const handleDragIn = (e: DragEvent) => {
35 e.preventDefault()
36 e.stopPropagation()
37 dragCounter++
38 if (e.dataTransfer && e.dataTransfer.items && e.dataTransfer.items.length > 0) {
39 setIsDragging(true)
40 }
41 }
42 const handleDragOut = (e: DragEvent) => {
43 e.preventDefault()
44 e.stopPropagation()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected