Skip to content

Edge-Drop is a clipboard shelf on the edge of your screen. Hover to open it. Drag files and images into any app, click to copy text and links. Free and open-source for Windows.

added bouncy animation

Deepender254e017de67f92
diff --git a/drag_debug.txt b/drag_debug.txt
index 14bc5fb..d67df81 100644
--- a/drag_debug.txt
+++ b/drag_debug.txt
@@ -1117,3 +1117,209 @@
[2026-07-03T15:07:02.098Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
[2026-07-03T15:07:02.099Z] createFileStackDragIcon calling Resvg for count=1
[2026-07-03T15:07:02.337Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T15:35:24.437Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T15:35:26.040Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T15:35:26.041Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T15:35:26.386Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T15:35:26.387Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T15:35:26.719Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T15:42:03.516Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T15:42:03.995Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T15:42:03.996Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T15:42:04.274Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T15:42:04.275Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T15:42:04.508Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T15:48:24.477Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T15:48:26.412Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T15:48:26.414Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T15:48:26.736Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T15:48:26.737Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T15:48:27.051Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T15:54:01.929Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T15:54:02.170Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T15:54:02.171Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T15:54:02.361Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T15:54:02.362Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T15:54:02.548Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T16:00:11.086Z] startDragOut called for kind=image
+[2026-07-04T16:00:11.092Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6jt50v-g8emtfss.png, files=undefined
+[2026-07-04T16:00:11.093Z] dragIcon called for kind=image
+[2026-07-04T16:00:11.094Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-04T16:00:11.098Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-04T16:00:11.099Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T16:00:11.100Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6jt50v-g8emtfss.png, item.files=undefined
+[2026-07-04T16:01:55.612Z] startDragOut called for kind=image
+[2026-07-04T16:01:55.614Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6jt50v-g8emtfss.png, files=undefined
+[2026-07-04T16:01:55.615Z] dragIcon called for kind=image
+[2026-07-04T16:01:55.615Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-04T16:01:55.616Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-04T16:01:55.617Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T16:01:55.618Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6jt50v-g8emtfss.png, item.files=undefined
+[2026-07-04T16:03:30.722Z] startDragOut called for kind=image
+[2026-07-04T16:03:30.724Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6jt50v-g8emtfss.png, files=undefined
+[2026-07-04T16:03:30.726Z] dragIcon called for kind=image
+[2026-07-04T16:03:30.727Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-04T16:03:30.728Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-04T16:03:30.730Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T16:03:30.731Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6jt50v-g8emtfss.png, item.files=undefined
+[2026-07-04T16:05:42.873Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T16:05:43.349Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T16:05:43.350Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T16:05:43.544Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T16:05:43.545Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T16:05:43.777Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T16:09:49.988Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T16:09:50.211Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T16:09:50.212Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T16:09:50.425Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T16:09:50.426Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T16:09:50.628Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T16:14:12.877Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T16:14:13.060Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T16:14:13.061Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T16:14:13.229Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T16:14:13.230Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T16:14:13.411Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T17:56:41.183Z] startDragOut called for kind=image
+[2026-07-04T17:56:41.193Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6nywf2-3ce7db84.png, files=undefined
+[2026-07-04T17:56:41.195Z] dragIcon called for kind=image
+[2026-07-04T17:56:41.197Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-04T17:56:41.199Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-04T17:56:41.201Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T17:56:41.202Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6nywf2-3ce7db84.png, item.files=undefined
+[2026-07-04T17:56:42.354Z] startDragOut called for kind=image-collection
+[2026-07-04T17:56:42.358Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6nyqcw-6y2imh49.png, files=["C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nyqcw-6y2imh49.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nywf2-3ce7db84.png"]
+[2026-07-04T17:56:42.360Z] dragIcon called for kind=image-collection
+[2026-07-04T17:56:42.362Z] image drag requested: count=2. Returning custom image card stack icon!
+[2026-07-04T17:56:42.364Z] createFileStackDragIcon calling Resvg for count=2
+[2026-07-04T17:56:43.866Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T17:56:43.867Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T17:56:43.867Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6nyqcw-6y2imh49.png, item.files=["C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nyqcw-6y2imh49.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nywf2-3ce7db84.png"]
+[2026-07-04T17:56:43.916Z] startDragOut called for kind=image
+[2026-07-04T17:56:43.919Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6nylnj-fw9ut5ie.png, files=undefined
+[2026-07-04T17:56:43.920Z] dragIcon called for kind=image
+[2026-07-04T17:56:43.921Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-04T17:56:43.922Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-04T17:56:43.923Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T17:56:43.924Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6nylnj-fw9ut5ie.png, item.files=undefined
+[2026-07-04T17:56:45.411Z] startDragOut called for kind=image
+[2026-07-04T17:56:45.413Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6nylnj-fw9ut5ie.png, files=undefined
+[2026-07-04T17:56:45.413Z] dragIcon called for kind=image
+[2026-07-04T17:56:45.414Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-04T17:56:45.415Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-04T17:56:45.415Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T17:56:45.416Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6nylnj-fw9ut5ie.png, item.files=undefined
+[2026-07-04T17:56:47.475Z] startDragOut called for kind=image
+[2026-07-04T17:56:47.477Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6nylg7-je02neru.png, files=undefined
+[2026-07-04T17:56:47.478Z] dragIcon called for kind=image
+[2026-07-04T17:56:47.479Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-04T17:56:47.479Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-04T17:56:47.480Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T17:56:47.481Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6nylg7-je02neru.png, item.files=undefined
+[2026-07-04T17:56:49.457Z] startDragOut called for kind=image
+[2026-07-04T17:56:49.460Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6nyd8h-3dnxucty.png, files=undefined
+[2026-07-04T17:56:49.461Z] dragIcon called for kind=image
+[2026-07-04T17:56:49.462Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-04T17:56:49.463Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-04T17:56:49.463Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T17:56:49.464Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6nyd8h-3dnxucty.png, item.files=undefined
+[2026-07-04T17:56:51.023Z] startDragOut called for kind=image-collection
+[2026-07-04T17:56:51.029Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6nyqcw-6y2imh49.png, files=["C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nyqcw-6y2imh49.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nywf2-3ce7db84.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nylnj-fw9ut5ie.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nylg7-je02neru.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nyd8h-3dnxucty.png"]
+[2026-07-04T17:56:51.030Z] dragIcon called for kind=image-collection
+[2026-07-04T17:56:51.031Z] image drag requested: count=5. Returning custom image card stack icon!
+[2026-07-04T17:56:51.032Z] createFileStackDragIcon calling Resvg for count=5
+[2026-07-04T17:56:51.296Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T17:56:51.297Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T17:56:51.298Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6nyqcw-6y2imh49.png, item.files=["C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nyqcw-6y2imh49.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nywf2-3ce7db84.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nylnj-fw9ut5ie.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nylg7-je02neru.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nyd8h-3dnxucty.png"]
+[2026-07-04T18:02:02.789Z] startDragOut called for kind=image
+[2026-07-04T18:02:02.795Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6o5zag-p2i83738.png, files=undefined
+[2026-07-04T18:02:02.796Z] dragIcon called for kind=image
+[2026-07-04T18:02:02.797Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-04T18:02:02.799Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-04T18:02:02.801Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T18:02:02.803Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6o5zag-p2i83738.png, item.files=undefined
+[2026-07-04T18:06:54.616Z] startDragOut called for kind=image
+[2026-07-04T18:06:54.624Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6oc83x-5uf697rf.png, files=undefined
+[2026-07-04T18:06:54.626Z] dragIcon called for kind=image
+[2026-07-04T18:06:54.627Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-04T18:06:54.629Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-04T18:06:54.630Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T18:06:54.634Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6oc83x-5uf697rf.png, item.files=undefined
+[2026-07-04T18:38:22.549Z] startDragOut called for kind=image
+[2026-07-04T18:38:22.557Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6pgp0b-kv95ml0a.png, files=undefined
+[2026-07-04T18:38:22.558Z] dragIcon called for kind=image
+[2026-07-04T18:38:22.559Z] image drag requested: count=1. Returning custom image card stack icon!
+[2026-07-04T18:38:22.561Z] createFileStackDragIcon returning cached for stack|dark|image|1
+[2026-07-04T18:38:22.562Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T18:38:22.563Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6pgp0b-kv95ml0a.png, item.files=undefined
+[2026-07-04T18:47:26.045Z] startDragOut called for kind=image-collection
+[2026-07-04T18:47:26.055Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6nyqcw-6y2imh49.png, files=["C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nyqcw-6y2imh49.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nywf2-3ce7db84.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nylnj-fw9ut5ie.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nylg7-je02neru.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nyd8h-3dnxucty.png"]
+[2026-07-04T18:47:26.056Z] dragIcon called for kind=image-collection
+[2026-07-04T18:47:26.057Z] image drag requested: count=5. Returning custom image card stack icon!
+[2026-07-04T18:47:26.058Z] createFileStackDragIcon returning cached for stack|dark|image-image-image|5
+[2026-07-04T18:47:26.059Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T18:47:26.061Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6nyqcw-6y2imh49.png, item.files=["C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nyqcw-6y2imh49.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nywf2-3ce7db84.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nylnj-fw9ut5ie.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nylg7-je02neru.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nyd8h-3dnxucty.png"]
+[2026-07-04T18:47:29.977Z] startDragOut called for kind=image-collection
+[2026-07-04T18:47:29.982Z] staged: file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6nyqcw-6y2imh49.png, files=["C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nyqcw-6y2imh49.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nywf2-3ce7db84.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nylnj-fw9ut5ie.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nylg7-je02neru.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nyd8h-3dnxucty.png"]
+[2026-07-04T18:47:29.985Z] dragIcon called for kind=image-collection
+[2026-07-04T18:47:29.985Z] image drag requested: count=5. Returning custom image card stack icon!
+[2026-07-04T18:47:29.986Z] createFileStackDragIcon returning cached for stack|dark|image-image-image|5
+[2026-07-04T18:47:29.987Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T18:47:29.988Z] calling sender.startDrag with item.file=C:\Users\yadav\AppData\Roaming\edge-drop\temp\mr6nyqcw-6y2imh49.png, item.files=["C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nyqcw-6y2imh49.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nywf2-3ce7db84.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nylnj-fw9ut5ie.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nylg7-je02neru.png","C:\\Users\\yadav\\AppData\\Roaming\\edge-drop\\temp\\mr6nyd8h-3dnxucty.png"]
+[2026-07-04T20:53:10.336Z] startDragOut called for kind=files
+[2026-07-04T20:53:10.340Z] staged: file=C:\Users\yadav\Downloads\logs-1783198358634.csv, files=["C:\\Users\\yadav\\Downloads\\logs-1783198358634.csv"]
+[2026-07-04T20:53:10.341Z] dragIcon called for kind=files
+[2026-07-04T20:53:10.342Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\logs-1783198358634.csv"]
+[2026-07-04T20:53:10.345Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-04T20:53:12.389Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T20:53:12.391Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T20:53:12.392Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\logs-1783198358634.csv, item.files=["C:\\Users\\yadav\\Downloads\\logs-1783198358634.csv"]
+[2026-07-04T20:53:14.307Z] startDragOut called for kind=files
+[2026-07-04T20:53:14.307Z] staged: file=C:\Users\yadav\Downloads\logs-1783198358634.csv, files=["C:\\Users\\yadav\\Downloads\\logs-1783198358634.csv"]
+[2026-07-04T20:53:14.309Z] dragIcon called for kind=files
+[2026-07-04T20:53:14.309Z] files check: count=1, paths=["C:\\Users\\yadav\\Downloads\\logs-1783198358634.csv"]
+[2026-07-04T20:53:14.310Z] createFileStackDragIcon returning cached for stack|dark|excel|1
+[2026-07-04T20:53:14.310Z] dragIcon result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-04T20:53:14.311Z] calling sender.startDrag with item.file=C:\Users\yadav\Downloads\logs-1783198358634.csv, item.files=["C:\\Users\\yadav\\Downloads\\logs-1783198358634.csv"]
+[2026-07-05T12:04:50.401Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T12:04:50.756Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-05T12:04:50.757Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T12:04:50.926Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-05T12:04:50.927Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T12:04:51.072Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-05T12:29:08.428Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T12:29:08.919Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-05T12:29:08.920Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T12:29:09.186Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-05T12:29:09.187Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T12:29:09.438Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-05T15:22:30.014Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T15:22:31.395Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-05T15:22:31.396Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T15:22:31.667Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-05T15:22:31.669Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T15:22:31.964Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-05T15:32:38.124Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T15:32:38.522Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-05T15:32:38.523Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T15:32:38.665Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-05T15:32:38.666Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T15:32:38.804Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-05T15:36:47.293Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T15:36:47.522Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-05T15:36:47.523Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T15:36:47.735Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-05T15:36:47.736Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T15:36:47.886Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-05T15:38:19.936Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T15:38:20.161Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-05T15:38:20.162Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T15:38:20.361Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-05T15:38:20.362Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T15:38:20.496Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-05T15:41:55.291Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T15:41:55.497Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-05T15:41:55.498Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T15:41:55.693Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
+[2026-07-05T15:41:55.694Z] createFileStackDragIcon calling Resvg for count=1
+[2026-07-05T15:41:55.858Z] createFileStackDragIcon resvg result: isEmpty=false, size={"width":96,"height":96}
diff --git a/electron/clipboard/formats.ts b/electron/clipboard/formats.ts
index f7136ba..95321a0 100644
--- a/electron/clipboard/formats.ts
+++ b/electron/clipboard/formats.ts
@@ -47,8 +47,15 @@ const COLOR_HEX_RE = /^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i
/** Sensitive clipboard formats used by password managers and transient scripts. */
const IGNORED_FORMATS = [
'ClipboardViewerIgnore',
+ 'Clipboard Viewer Ignore',
+ 'ExcludeClipboardContentFromMonitorProcessing',
'org.nspasteboard.ConcealedType',
- 'com.agilebits.onepassword'
+ 'org.nspasteboard.AutoGeneratedType',
+ 'com.agilebits.onepassword',
+ 'com.apple.is-sensitive',
+ 'com.apple.pasteboard.concealed',
+ 'KeePassClipFormat',
+ 'com.bitwarden.concealed'
]
/** Read a DWORD (32-bit uint) from a clipboard format, if present. */
@@ -82,18 +89,17 @@ function isIgnoredFormat(format: string): boolean {
}
/**
- * Snapshot the current clipboard into a single ItemData, or null if it's empty.
- * Order matters: a file copy should win over its text fallback, an image wins
- * over nothing, otherwise we keep text (preferring HTML if it carries rich text).
+ * Checks whether the current clipboard content is marked as sensitive, confidential,
+ * or transient (e.g. by password managers, dictation tools, or macro scripts)
+ * and should be ignored by clipboard monitors.
*/
-export function readClipboard(): ItemData | null {
+export function isClipboardExcluded(): boolean {
const formats = clipboard.availableFormats()
- // Skip content that password managers / secret managers explicitly mark as
- // sensitive.
if (formats.some((f) => isIgnoredFormat(f))) {
- return null
+ return true
}
+
// Explicitly check known privacy formats because Chromium often hides them from availableFormats()
const checkExplicitExclusion = (format: string, isExcluded: (buf: Buffer) => boolean) => {
try {
@@ -107,24 +113,39 @@ export function readClipboard(): ItemData | null {
// CanIncludeInClipboardHistory: 0 means DO NOT include
if (checkExplicitExclusion('CanIncludeInClipboardHistory', (buf) => buf.length >= 4 && buf.readUInt32LE(0) === 0)) {
- return null
+ return true
}
// CanUploadToCloudClipboard: 0 means DO NOT include
if (checkExplicitExclusion('CanUploadToCloudClipboard', (buf) => buf.length >= 4 && buf.readUInt32LE(0) === 0)) {
- return null
+ return true
}
// ExcludeClipboardContentFromMonitorProcessing: non-zero means EXCLUDE
if (checkExplicitExclusion('ExcludeClipboardContentFromMonitorProcessing', (buf) => buf.length >= 4 && buf.readUInt32LE(0) !== 0)) {
- return null
+ return true
}
// Clipboard Viewer Ignore: presence of format with data means EXCLUDE
if (checkExplicitExclusion('Clipboard Viewer Ignore', () => true)) {
+ return true
+ }
+
+ return false
+}
+
+/**
+ * Snapshot the current clipboard into a single ItemData, or null if it's empty.
+ * Order matters: a file copy should win over its text fallback, an image wins
+ * over nothing, otherwise we keep text (preferring HTML if it carries rich text).
+ */
+export function readClipboard(): ItemData | null {
+ if (isClipboardExcluded()) {
return null
}
+ const formats = clipboard.availableFormats()
+
// Files first — a file copy also places text on the clipboard, which we ignore.
const files = readFileList()
if (files && files.length) return { kind: 'files', paths: files }
@@ -132,9 +153,6 @@ export function readClipboard(): ItemData | null {
// Text vs Image priority heuristic based on available formats.
// When copying from Office apps, both rich text and images are placed on the clipboard.
// When copying an image from a browser, both image and a small text fallback are placed.
- const hasText = formats.includes('text/plain')
- const hasHtml = formats.includes('text/html')
- const hasRtf = formats.includes('text/rtf')
const hasImage = formats.includes('image/png') || formats.includes('image/jpeg')
const rawText = clipboard.readText().trim()
@@ -206,6 +224,10 @@ export function readClipboard(): ItemData | null {
* previous approach and was very expensive on a 600ms poll).
*/
export function clipboardSignature(): string {
+ if (isClipboardExcluded()) {
+ return 'excluded'
+ }
+
const formats = clipboard.availableFormats()
// A cheap fingerprint of *what* is on the clipboard.
// Sorting makes the format-key stable regardless of OS ordering.
diff --git a/electron/main/index.ts b/electron/main/index.ts
index fcce23b..1f170b5 100644
--- a/electron/main/index.ts
+++ b/electron/main/index.ts
@@ -75,12 +75,14 @@ app.whenReady().then(() => {
// Reflect incognito setting into the watcher immediately.
const settings = loadSettings()
- try {
- app.setLoginItemSettings({
- openAtLogin: settings.launchAtLogin,
- path: app.getPath('exe')
- })
- } catch { /* ignore in non-packaged / sandbox */ }
+ if (app.isPackaged) {
+ try {
+ app.setLoginItemSettings({
+ openAtLogin: settings.launchAtLogin,
+ path: app.getPath('exe')
+ })
+ } catch { /* ignore in non-packaged / sandbox */ }
+ }
registerIncognitoApplier((v) => getWatcher().setPaused(v))
getWatcher().setPaused(settings.incognito)
pushState.settings(settings)
diff --git a/electron/main/ipc.ts b/electron/main/ipc.ts
index 55d256f..eaac67c 100644
--- a/electron/main/ipc.ts
+++ b/electron/main/ipc.ts
@@ -6,10 +6,8 @@
* is a compile-time error rather than a runtime one.
*/
import { app, ipcMain, clipboard, nativeImage } from 'electron'
-import { existsSync } from 'node:fs'
-import { join } from 'node:path'
import { execFile } from 'node:child_process'
-import { PATHS } from '../store/paths'
+import { existsSync } from 'node:fs'
import { type InvokeMap, type InvokeChannel, type SendMap, type SendChannel } from '../../shared/ipc'
import { getStore, loadSettings, saveSettings, pushState, addFiles, getWatcher } from './state'
import { getMainWindow } from './window'
@@ -266,7 +264,7 @@ export function registerIpc(): void {
handle('settings:update', (patch) => {
const next = saveSettings(patch)
- if (patch.launchAtLogin !== undefined) {
+ if (patch.launchAtLogin !== undefined && app.isPackaged) {
try {
app.setLoginItemSettings({
openAtLogin: next.launchAtLogin,
diff --git a/package-lock.json b/package-lock.json
index 4ca4cf7..fe0bf3c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,6 +9,8 @@
"version": "0.1.0",
"license": "MIT",
"dependencies": {
+ "@radix-ui/react-scroll-area": "^1.2.13",
+ "@radix-ui/react-separator": "^1.1.11",
"@resvg/resvg-js": "^2.6.2",
"framer-motion": "^11.0.24",
"react": "^18.2.0",
@@ -1285,6 +1287,211 @@
"node": ">=14.18.0"
}
},
+ "node_modules/@radix-ui/number": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/@radix-ui/number/-/number-1.1.2.tgz",
+ "integrity": "sha512-ceTwaxc4I5IOi97DgCotl3pqiyRGvffcc0oOsE2dQYaJOFIDsDt4VWG6xEbg1QePv9QWausCEIppud/tJ1wNig==",
+ "license": "MIT"
+ },
+ "node_modules/@radix-ui/primitive": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/@radix-ui/primitive/-/primitive-1.1.4.tgz",
+ "integrity": "sha512-7AdCK9PQyiljKoBDbN8OuctCbd/esdwZPQ8RtOE3SsyQtUpiPb+ND75q0jEhC1m1ecBI0MFNeLJvwIh9iKHRcQ==",
+ "license": "MIT"
+ },
+ "node_modules/@radix-ui/react-compose-refs": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-compose-refs/-/react-compose-refs-1.1.3.tgz",
+ "integrity": "sha512-rYOP8OMnuuPMQF1uhPVlGNcCDlkokKqGFE3JcxFViIkAXP7EvFWUliJAstrapypaBLJNHbZL6jGhbVDGTwmVhA==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-context": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-context/-/react-context-1.1.4.tgz",
+ "integrity": "sha512-QwH4PO5urrbO+FaGd5Aglg+YJgWTyyuZ3g/6mKvsqraLkglDdckw9JafgL5McL5VEJ6EPNduPaT3ZE9BttDAqg==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-direction": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-direction/-/react-direction-1.1.2.tgz",
+ "integrity": "sha512-C3vFhbyi4SW3PmbAi6Awpu4OzJtd0MxGurvSsYtr7p7nM8RNB3VAF3CUmnp2j50knpkrRcB7+ycVXzgLgF6yNA==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-presence": {
+ "version": "1.1.6",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-presence/-/react-presence-1.1.6.tgz",
+ "integrity": "sha512-zdTk4PlUO0E18HnZ3wYbW0KkJJxWCdiNYp6g6X1PtONFhxVkg01vliTJAmwIszU6mHiyBOoW9P0rAugl5/hULQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-use-layout-effect": "1.1.2"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-primitive": {
+ "version": "2.1.7",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-primitive/-/react-primitive-2.1.7.tgz",
+ "integrity": "sha512-bC3NiwsprbxKjuon9l7X6BUTw7FPVzEYaL92MPEY5SCd/9hUTPXVFtVwRix7778wtRsVao+zE062gL79FZleeQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-slot": "1.3.0"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-scroll-area": {
+ "version": "1.2.13",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-scroll-area/-/react-scroll-area-1.2.13.tgz",
+ "integrity": "sha512-7tncSubo2G0UY1e8rk+72qe3XRzrGnOLtZQ1PL1KoBfRUNX0NrJT5akb+0kfwSCc3gVR4wdHqyhAQBDpDNOwDw==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/number": "1.1.2",
+ "@radix-ui/primitive": "1.1.4",
+ "@radix-ui/react-compose-refs": "1.1.3",
+ "@radix-ui/react-context": "1.1.4",
+ "@radix-ui/react-direction": "1.1.2",
+ "@radix-ui/react-presence": "1.1.6",
+ "@radix-ui/react-primitive": "2.1.7",
+ "@radix-ui/react-use-callback-ref": "1.1.2",
+ "@radix-ui/react-use-layout-effect": "1.1.2"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-separator": {
+ "version": "1.1.11",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-separator/-/react-separator-1.1.11.tgz",
+ "integrity": "sha512-jRhe86+8PF7VZ1u14eOWVOuh2BuAhALg/FT1VcMC4OHedMTRUazDnDlKTt+yxo5cRNKHMfmvZ4sSQtWDeMV4CQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-primitive": "2.1.7"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
+ "react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-slot": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-slot/-/react-slot-1.3.0.tgz",
+ "integrity": "sha512-MojKku4U/miO8Av4Dkb+ctMAQx7JmY96LmtDQlAarCRtd7rN52QCSzBF+XAvr5S6coSVj9HEPBgHAHKEJVk/WA==",
+ "license": "MIT",
+ "dependencies": {
+ "@radix-ui/react-compose-refs": "1.1.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-use-callback-ref": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.1.2.tgz",
+ "integrity": "sha512-xCso9j1/u8sEgP1RNHjFrXJLApL8LiqOkI1R4ywuN00rxWdYg4oQXuwKLS3i0j5NWLromUD27/4nlxj2UFVvIw==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@radix-ui/react-use-layout-effect": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.1.2.tgz",
+ "integrity": "sha512-jrBWOxZITuGcnjRCM2t2U5ZPkCLxD+Ym6DjfssS5haTj2iiak/DOb64JeN6OdLfLgptb6/e2kKR+ZuTrGoZTPA==",
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "*",
+ "react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@resvg/resvg-js": {
"version": "2.6.2",
"resolved": "https://registry.npmjs.org/@resvg/resvg-js/-/resvg-js-2.6.2.tgz",
@@ -2024,7 +2231,7 @@
"version": "18.3.7",
"resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz",
"integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==",
- "dev": true,
+ "devOptional": true,
"license": "MIT",
"peerDependencies": {
"@types/react": "^18.0.0"
diff --git a/package.json b/package.json
index a484607..8b4744d 100644
--- a/package.json
+++ b/package.json
@@ -21,7 +21,7 @@
"appId": "com.edgedrop.app",
"productName": "Edge-Drop",
"directories": {
- "output": "C:/Users/yadav/.gemini/antigravity-ide/brain/fb8fe3b1-256b-4212-80ae-836bebbcc71f/scratch/dist",
+ "output": "dist",
"buildResources": "resources"
},
"files": [
@@ -61,6 +61,8 @@
"vite": "^5.2.6"
},
"dependencies": {
+ "@radix-ui/react-scroll-area": "^1.2.13",
+ "@radix-ui/react-separator": "^1.1.11",
"@resvg/resvg-js": "^2.6.2",
"framer-motion": "^11.0.24",
"react": "^18.2.0",
diff --git a/src/components/ClipboardItem.tsx b/src/components/ClipboardItem.tsx
index 6d0445e..4e81d51 100644
--- a/src/components/ClipboardItem.tsx
+++ b/src/components/ClipboardItem.tsx
@@ -75,13 +75,11 @@ function setupTextDragImage(e: React.DragEvent, text: string, isUrl?: boolean) {
/* ------------------------------------------------------------------ */
function ClipboardItemBase({ item }: Props) {
- const copy = useStore((s) => s.copy)
- const paste = useStore((s) => s.paste)
- const pasteSubitem = useStore((s) => s.pasteSubitem)
- const togglePin = useStore((s) => s.togglePin)
- const remove = useStore((s) => s.remove)
- const setInternalDragReq = useStore((s) => s.setInternalDragReq)
- const internalDragReq = useStore((s) => s.internalDragReq)
+ const copy = useStore.getState().copy
+ const paste = useStore.getState().paste
+ const togglePin = useStore.getState().togglePin
+ const remove = useStore.getState().remove
+ const setInternalDragReq = useStore.getState().setInternalDragReq
const startDrag = useDragOut()
const [copied, setCopied] = useState(false)
const [expanded, setExpanded] = useState(false)
@@ -126,22 +124,6 @@ function ClipboardItemBase({ item }: Props) {
}, 220)
}, [paste, item.id, onDoubleClick])
- const onSubitemClick = useCallback((e: React.MouseEvent, req: import('../../shared/types').DragRequest) => {
- e.stopPropagation()
- if (clickTimerRef.current !== undefined) {
- window.clearTimeout(clickTimerRef.current)
- clickTimerRef.current = undefined
- window.edge.copySubitem(req)
- setCopied(true)
- window.setTimeout(() => setCopied(false), 900)
- return
- }
- clickTimerRef.current = window.setTimeout(() => {
- clickTimerRef.current = undefined
- pasteSubitem(req)
- }, 220)
- }, [pasteSubitem])
-
const onExpand = useCallback((e?: React.MouseEvent) => {
e?.stopPropagation()
if (isBundle) setExpanded(true)
@@ -175,7 +157,7 @@ function ClipboardItemBase({ item }: Props) {
return (
<motion.div
layout
- initial={{ opacity: 0, y: 8, scale: 0.98 }}
+ initial={open ? { opacity: 0, y: 8, scale: 0.98 } : false}
animate={{ opacity: 1, y: 0, scale: 1 }}
exit={{ opacity: 0, scale: 0.95, transition: { duration: 0.14 } }}
transition={{ type: 'spring', stiffness: 420, damping: 34 }}
@@ -188,23 +170,25 @@ function ClipboardItemBase({ item }: Props) {
onDragStart={(e) => handleDragStart(e, { id: item.id })}
onDragEnd={() => setInternalDragReq(null)}
onDragOver={(e) => {
- if (internalDragReq && internalDragReq.id !== item.id) {
+ const activeDrag = useStore.getState().internalDragReq
+ if (activeDrag && activeDrag.id !== item.id) {
e.preventDefault()
- } else if (internalDragReq && internalDragReq.id === item.id) {
+ } else if (activeDrag && activeDrag.id === item.id) {
e.preventDefault()
e.stopPropagation()
}
}}
onDrop={(e) => {
- if (internalDragReq && internalDragReq.id !== item.id) {
+ const activeDrag = useStore.getState().internalDragReq
+ if (activeDrag && activeDrag.id !== item.id) {
e.preventDefault()
e.stopPropagation()
// If they drop an entire item or a subitem onto another item, we merge them.
// Currently our merge logic merges the entire source item.
// In the future we might want to merge just the subitem.
- window.edge.mergeItems(internalDragReq.id, item.id)
+ window.edge.mergeItems(activeDrag.id, item.id)
setInternalDragReq(null)
- } else if (internalDragReq && internalDragReq.id === item.id) {
+ } else if (activeDrag && activeDrag.id === item.id) {
e.preventDefault()
e.stopPropagation()
setInternalDragReq(null)
@@ -283,6 +267,26 @@ function BundleFluidPreview({
onRemove: () => void
onCollapse: (e?: React.MouseEvent) => void
}) {
+ const pasteSubitem = useStore((s) => s.pasteSubitem)
+ const [, setCopied] = useState(false)
+ const clickTimerRef = useRef<number | undefined>(undefined)
+
+ const onSubitemClick = useCallback((e: React.MouseEvent, req: import('../../shared/types').DragRequest) => {
+ e.stopPropagation()
+ if (clickTimerRef.current !== undefined) {
+ window.clearTimeout(clickTimerRef.current)
+ clickTimerRef.current = undefined
+ window.edge.copySubitem(req)
+ setCopied(true)
+ window.setTimeout(() => setCopied(false), 900)
+ return
+ }
+ clickTimerRef.current = window.setTimeout(() => {
+ clickTimerRef.current = undefined
+ pasteSubitem(req)
+ }, 220)
+ }, [pasteSubitem])
+
if (item.data.kind === 'image-collection') {
const more = item.data.images.length - 1
return (
diff --git a/src/components/ItemList.tsx b/src/components/ItemList.tsx
index 477655b..9443c3e 100644
--- a/src/components/ItemList.tsx
+++ b/src/components/ItemList.tsx
@@ -9,11 +9,12 @@
* dragged over the panel so the edge-hover hook knows not to close mid-drag.
*/
import { AnimatePresence, motion } from 'framer-motion'
-import { useRef, useEffect, useState } from 'react'
+import { useRef, useEffect, useLayoutEffect, useState } from 'react'
import { useStore } from '../store/appStore'
import { useFilteredItems } from '../hooks/useFilteredItems'
import { ClipboardItemCard } from './ClipboardItem'
import { EmptyState } from './EmptyState'
+import { ChevronUpIcon, ChevronDownIcon } from './icons'
export function ItemList() {
const { pinned, recent } = useFilteredItems()
@@ -22,14 +23,27 @@ export function ItemList() {
const total = pinned.length + recent.length
- const dragActive = useStore((s) => s.dragActive)
- const internalDragReq = useStore((s) => s.internalDragReq)
+ const isDraggingAny = useStore((s) => !!s.dragActive || !!s.internalDragReq)
+ const open = useStore((s) => s.open)
const [showScrollTop, setShowScrollTop] = useState(false)
+ const [pinnedCollapsed, setPinnedCollapsedState] = useState(() => {
+ const saved = localStorage.getItem('edge_drop_pinned_collapsed')
+ return saved !== null ? saved === 'true' : true // Compressed by default
+ })
+
+ const setPinnedCollapsed = (val: boolean) => {
+ setPinnedCollapsedState(val)
+ localStorage.setItem('edge_drop_pinned_collapsed', String(val))
+ }
- const firstItemId = (pinned[0] || recent[0])?.id
- const prevFirstItemId = useRef(firstItemId)
- const prevTotal = useRef(total)
+ const topRecentId = recent[0]?.id
+ const topRecentTime = recent[0]?.capturedAt
+ const topPinnedTime = pinned[0]?.capturedAt
+
+ const prevTopRecentId = useRef(topRecentId)
+ const prevTopRecentTime = useRef(topRecentTime)
+ const prevTopPinnedTime = useRef(topPinnedTime)
const scrollRaf = useRef<number | null>(null)
const scrollVelocity = useRef<number>(0)
@@ -40,22 +54,60 @@ export function ItemList() {
}
}, [])
- useEffect(() => {
- // If the first item changed and the total didn't decrease, a new item was likely added (copied/split).
- if (firstItemId !== prevFirstItemId.current && total >= prevTotal.current) {
- if (listRef.current) {
- listRef.current.scrollTo({ top: 0, behavior: 'smooth' })
+ const prevOpen = useRef(open)
+ const lastClosedAt = useRef<number>(Date.now())
+ const lastClosedTopId = useRef<string | undefined>(topRecentId)
+ const lastClosedTopTime = useRef<number | undefined>(topRecentTime)
+ const lastClosedTopPinnedTime = useRef<number | undefined>(topPinnedTime)
+
+ useLayoutEffect(() => {
+ if (!open && prevOpen.current) {
+ // Panel just closed: record timestamps and top item ids
+ lastClosedAt.current = Date.now()
+ lastClosedTopId.current = topRecentId
+ lastClosedTopTime.current = topRecentTime
+ lastClosedTopPinnedTime.current = topPinnedTime
+ } else if (open && !prevOpen.current) {
+ // Panel just opened: check if closed >= 60s OR if a new copy happened while closed
+ const timeSinceClosed = Date.now() - lastClosedAt.current
+ const hasNewCopyWhileClosed =
+ topRecentId !== lastClosedTopId.current ||
+ topRecentTime !== lastClosedTopTime.current ||
+ topPinnedTime !== lastClosedTopPinnedTime.current
+
+ if (timeSinceClosed >= 60000 || hasNewCopyWhileClosed) {
+ if (listRef.current) {
+ listRef.current.scrollTop = 0
+ }
}
}
- prevFirstItemId.current = firstItemId
- prevTotal.current = total
- }, [firstItemId, total])
+ prevOpen.current = open
+ }, [open, topRecentId, topRecentTime, topPinnedTime])
+
+ useLayoutEffect(() => {
+ // If recent or pinned items changed/updated while panel is open, instantly jump to top without animation
+ if (open) {
+ const idChanged = topRecentId !== prevTopRecentId.current
+ const recentTimeChanged = topRecentTime !== prevTopRecentTime.current
+ const pinnedTimeChanged = topPinnedTime !== prevTopPinnedTime.current
+
+ if (idChanged || recentTimeChanged || pinnedTimeChanged) {
+ if (listRef.current) {
+ listRef.current.scrollTop = 0
+ }
+ }
+ }
+
+ prevTopRecentId.current = topRecentId
+ prevTopRecentTime.current = topRecentTime
+ prevTopPinnedTime.current = topPinnedTime
+ }, [open, topRecentId, topRecentTime, topPinnedTime])
useEffect(() => {
- if (!dragActive && !internalDragReq) {
+ if (!isDraggingAny) {
stopScrolling()
}
- }, [dragActive, internalDragReq])
+ }, [isDraggingAny])
const handleScroll = (e: React.UIEvent<HTMLDivElement>) => {
if (e.currentTarget.scrollTop > 50) {
@@ -123,9 +175,10 @@ export function ItemList() {
}
return (
- <div
+ <motion.div
className="list"
ref={listRef}
+ layoutScroll
onDragOver={handleDragOver}
onDragLeave={handleDragLeaveOrDrop}
onDrop={handleDragLeaveOrDrop}
@@ -136,10 +189,25 @@ export function ItemList() {
) : (
<>
{pinned.length > 0 && (
- <section>
- <div className="section-label">Pinned</div>
+ <section className="pinned-section">
+ <div
+ className={`section-label pinned-header-interactive ${pinnedCollapsed ? 'is-collapsed' : ''}`}
+ onClick={() => setPinnedCollapsed(!pinnedCollapsed)}
+ title={pinnedCollapsed ? "Click to expand pinned items" : "Click to compress pinned items"}
+ >
+ <div className="pinned-header-left">
+ <span>Pinned</span>
+ <span className="pinned-count-badge">{pinned.length}</span>
+ </div>
+ <div className="pinned-header-right">
+ <span className="pinned-toggle-hint">{pinnedCollapsed ? 'Expand' : 'Compress'}</span>
+ <button className="act bundle-collapse-btn">
+ {pinnedCollapsed ? <ChevronDownIcon /> : <ChevronUpIcon />}
+ </button>
+ </div>
+ </div>
<AnimatePresence initial={false}>
- {pinned.map((it) => (
+ {!pinnedCollapsed && pinned.map((it) => (
<ClipboardItemCard key={it.id} item={it} />
))}
</AnimatePresence>
@@ -175,6 +243,6 @@ export function ItemList() {
</motion.button>
)}
</AnimatePresence>
- </div>
+ </motion.div>
)
}
diff --git a/src/components/Panel.tsx b/src/components/Panel.tsx
index 74cdf7a..a6a2440 100644
--- a/src/components/Panel.tsx
+++ b/src/components/Panel.tsx
@@ -165,17 +165,26 @@ export function Panel() {
position: 'absolute',
left: 0,
zIndex: 10,
- pointerEvents: open ? 'auto' : 'none'
+ pointerEvents: open ? 'auto' : 'none',
+ originX: 0,
+ originY: 0.5
}}
animate={{
clipPath: open
? 'inset(calc(0% - 100px) calc(0% - 100px) calc(0% - 100px) 0px round 0px 24px 24px 0px)'
- : `inset(calc(50% - ${halfTrigger}px) calc(100% - 3px) calc(50% - ${halfTrigger}px) 0px round 0px 12px 12px 0px)`
+ : `inset(calc(50% - ${halfTrigger}px) calc(100% - 3px) calc(50% - ${halfTrigger}px) 0px round 0px 12px 12px 0px)`,
+ scale: open ? [0.92, 1.05, 0.98, 1] : 1
}}
transition={{
- type: 'spring',
- bounce: 0.5,
- duration: 0.6
+ scale: {
+ duration: 0.55,
+ ease: [0.22, 1, 0.36, 1]
+ },
+ clipPath: {
+ type: 'spring',
+ bounce: 0.5,
+ duration: 0.6
+ }
}}
>
<div className="flare-top">
@@ -204,9 +213,11 @@ export function Panel() {
animate={{ opacity: 1, x: 0 }}
exit={{ opacity: 0, x: -10 }}
transition={{ duration: 0.15 }}
- style={{ flex: 1, display: 'flex', flexDirection: 'column', overflow: 'hidden' }}
+ style={{ flex: 1, display: 'flex', flexDirection: 'column', overflow: 'hidden', position: 'relative' }}
>
+ <div style={{ position: 'absolute', top: 0, left: 0, right: 0, height: 18, background: 'linear-gradient(to bottom, #000000, transparent)', pointerEvents: 'none', zIndex: 10 }} />
<Settings />
+ <div style={{ position: 'absolute', bottom: 0, left: 0, right: 0, height: 18, background: 'linear-gradient(to top, #000000, transparent)', pointerEvents: 'none', zIndex: 10 }} />
</motion.div>
) : (
<motion.div
diff --git a/src/components/icons.tsx b/src/components/icons.tsx
index fa4340d..d1c1296 100644
--- a/src/components/icons.tsx
+++ b/src/components/icons.tsx
@@ -105,6 +105,12 @@ export const ChevronUpIcon = (p: P) => (
</svg>
)
+export const ChevronDownIcon = (p: P) => (
+ <svg {...base(p)}>
+ <path fill="currentColor" fillRule="evenodd" d="M4.293 7.793a1 1 0 0 1 1.414 0L12 14.086l6.293-6.293a1 1 0 1 1 1.414 1.414l-7 7a1 1 0 0 1-1.414 0l-7-7a1 1 0 0 1 0-1.414" clipRule="evenodd" />
+ </svg>
+)
+
export const FileIconGlyph = (p: P) => (
<svg {...base(p)}>
<g> <g fill="currentColor" fillRule="evenodd" clipRule="evenodd"> <path d="M15.143 22H8.286A4.286 4.286 0 0 1 4 17.714V6.286A4.286 4.286 0 0 1 8.286 2h4.008a3.5 3.5 0 0 1 2.304.866l3.635 3.18a3.5 3.5 0 0 1 1.196 2.635v9.033A4.286 4.286 0 0 1 15.143 22m0-2H8.286A2.286 2.286 0 0 1 6 17.714V6.286A2.286 2.286 0 0 1 8.286 4h4.008a1.5 1.5 0 0 1 .987.371l3.635 3.18a1.5 1.5 0 0 1 .513 1.13v9.033A2.286 2.286 0 0 1 15.143 20" /> <path d="M13 3a1 1 0 0 1 1 1v3a1 1 0 0 0 1 1h2.5a1 1 0 1 1 0 2H15a3 3 0 0 1-3-3V4a1 1 0 0 1 1-1" /> </g> </g>
diff --git a/src/hooks/useEdgeHover.ts b/src/hooks/useEdgeHover.ts
index 7f99f01..633f634 100644
--- a/src/hooks/useEdgeHover.ts
+++ b/src/hooks/useEdgeHover.ts
@@ -27,15 +27,15 @@ import { useStore } from '../store/appStore'
const TRIGGER_PX = 3 // leftmost px that count as "the edge"
const DWELL_MS = 120 // cursor must linger this long to open
const GRACE_MS = 250 // close delay after leaving
-const PANEL_WIDE = 280 // blade is ~270px (var(--panel-width)); grace margin
+const PANEL_WIDE = 270 // blade is 270px (var(--panel-width))
/** Hysteresis thresholds for closing the panel.
* KEEP_OPEN_PX: if cursor x is <= this, the panel stays open (clearly inside blade).
* START_CLOSE_PX: if cursor x is > this, start the close timer (clearly outside).
* Gap between the two prevents rapid cancel/schedule oscillation at the blade edge
* when the cursor hovers just outside the visual boundary.
*/
-const KEEP_OPEN_PX = PANEL_WIDE - 30 // 250 — clearly inside blade
-const START_CLOSE_PX = PANEL_WIDE + 60 // 340 — clearly outside blade + window margin
+const KEEP_OPEN_PX = PANEL_WIDE - 15 // 255 — clearly inside blade
+const START_CLOSE_PX = PANEL_WIDE + 20 // 290 — 20px buffer outside the visual boundary
export const PANEL_LEAVE_EVENT = 'panel:leave'
export const PANEL_ENTER_EVENT = 'panel:enter'
diff --git a/src/styles/panel.css b/src/styles/panel.css
index cc6db57..3a08aec 100644
--- a/src/styles/panel.css
+++ b/src/styles/panel.css
@@ -157,6 +157,69 @@
margin-top: 4px;
}
+/* Interactive Pinned Section Header */
+.pinned-header-interactive {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ cursor: pointer;
+ padding: 4px 6px;
+ margin: 12px 0px 4px;
+ border-radius: 6px;
+ background: transparent;
+ transition: all 0.15s ease;
+ user-select: none;
+}
+.pinned-header-interactive:hover {
+ background: rgba(255, 255, 255, 0.05);
+ color: #f4f4f5;
+}
+.pinned-header-left {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+}
+.pinned-count-badge {
+ background: rgba(255, 255, 255, 0.1);
+ color: rgba(255, 255, 255, 0.85);
+ font-size: 10px;
+ font-weight: 700;
+ padding: 2px 7px;
+ border-radius: 10px;
+ letter-spacing: 0;
+ border: none;
+}
+.pinned-header-right {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+}
+.pinned-toggle-hint {
+ font-size: 10px;
+ font-weight: 500;
+ color: #71717a;
+ text-transform: none;
+ letter-spacing: 0;
+ transition: color 0.2s ease;
+}
+.pinned-header-interactive:hover .pinned-toggle-hint {
+ color: #a1a1aa;
+}
+.pinned-header-interactive .bundle-collapse-btn {
+ background: transparent;
+ padding: 0;
+ height: 18px;
+ width: 18px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ pointer-events: none;
+ color: #a1a1aa;
+}
+.pinned-header-interactive:hover .bundle-collapse-btn {
+ color: #f4f4f5;
+}
+
/* Empty state */
.empty {
flex: 1;