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.
TypeScript clipboardclipboard-managerdesktop-appdrag-and-dropelectronopen-sourceproductivityproductivity-toolwindows
fix(clipboard): enable universal copy flare for right-click and Explorer actions and calibrate icon thickness
Deepender2505b13b7ee7c9
diff --git a/electron/clipboard/ClipboardWatcher.ts b/electron/clipboard/ClipboardWatcher.tsindex 091469d..f99d051 100644--- a/electron/clipboard/ClipboardWatcher.ts+++ b/electron/clipboard/ClipboardWatcher.ts@@ -18,13 +18,17 @@ import type { ItemData } from '../../shared/types'*/export type NewItemHandler = (data: ItemData, imagePng?: Buffer) => void+function getContentSignature(sig: string): string {+ return sig.replace(/^seq:\d+:/, '')+}+export class ClipboardWatcher {private timer: NodeJS.Timeout | null = nullprivate lastSig = 'empty'private paused = falseprivate readonly intervalMs: number- constructor(intervalMs = 600) {+ constructor(intervalMs = 300) {this.intervalMs = intervalMs}@@ -46,13 +50,12 @@ export class ClipboardWatcher {if (this.paused) returnconst stableSig = clipboardSignature()- // If the signature changed AGAIN during this tiny window, it was a transient- // copy-paste-restore operation. Ignore it and let the next tick handle the restored state.- if (stableSig !== sig) {+ // Compare content signatures (ignoring sequence numbers that increment as OS writes multi-format clipboard streams)+ if (getContentSignature(stableSig) !== getContentSignature(sig)) {return}- this.lastSig = sig+ this.lastSig = stableSig// readClipboard is async: on Windows it awaits a PowerShell// GetFileDropList() call to retrieve ALL selected files.@@ -72,7 +75,7 @@ export class ClipboardWatcher {} else {onNew(data)}- }, 250)+ }, 150)}, this.intervalMs)}diff --git a/src/components/CopyIndicatorCurve.tsx b/src/components/CopyIndicatorCurve.tsxindex c680080..9ec1d08 100644--- a/src/components/CopyIndicatorCurve.tsx+++ b/src/components/CopyIndicatorCurve.tsx@@ -57,7 +57,7 @@ export function TickIndicatorIcon({<motion.pathd="M9 22H15C20 22 22 20 22 15V9C22 4 20 2 15 2H9C4 2 2 4 2 9V15C2 20 4 22 9 22Z"stroke={fillColor}- strokeWidth="1.6"+ strokeWidth="2.5"strokeLinecap="round"strokeLinejoin="round"initial={{ opacity: 0 }}@@ -67,7 +67,7 @@ export function TickIndicatorIcon({<motion.pathd="M7.0 12.0L10.5 15.5L17.8 8.0"stroke={fillColor}- strokeWidth="2.0"+ strokeWidth="3.15"strokeLinecap="round"strokeLinejoin="round"initial={{ opacity: 0 }}diff --git a/src/store/appStore.ts b/src/store/appStore.tsindex 5879093..194751d 100644--- a/src/store/appStore.ts+++ b/src/store/appStore.ts@@ -231,8 +231,9 @@ export const useStore = create<AppState>((set, get) => ({const prevTop = prevItems.length > 0 ? prevItems[0] : nullconst newTop = items.length > 0 ? items[0] : null- if (get().hydrated && prevTop && newTop) {+ if (get().hydrated && newTop) {if (+ !prevTop ||newTop.id !== prevTop.id ||newTop.capturedAt !== prevTop.capturedAt ||newTop.hitCount !== prevTop.hitCount