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(panel): eliminate startup 1-frame artifact on top dock and add trigger intro fade
Deepender25c94ac965473f
diff --git a/shared/types.ts b/shared/types.tsindex 2d19568..9e4b420 100644--- a/shared/types.ts+++ b/shared/types.ts@@ -171,11 +171,6 @@ export interface Settings {* when two displays share identical workArea geometry (e.g. dual same-res).*/stickDisplayScaleFactor?: number- /**- * When true, restores the bouncy overshoot panel-open animation.- * Off by default because it requires extra GPU compositing work.- */- bounceAnimation: boolean/*** When true, automatically suppresses edge hover when a fullscreen game or app is active.* On by default to prevent accidental opening during PC gameplay.@@ -238,7 +233,6 @@ export const DEFAULT_SETTINGS: Settings = {stickDisplayId: undefined,stickDisplayWorkArea: undefined,stickDisplayScaleFactor: undefined,- bounceAnimation: false,suppressInFullscreen: true,showCopyIndicator: true,copyIndicatorStyle: 'logo',diff --git a/src/App.tsx b/src/App.tsxindex 7f96970..87c4a87 100644--- a/src/App.tsx+++ b/src/App.tsx@@ -313,5 +313,9 @@ export default function App() {document.documentElement.style.setProperty('--font-scale', String(scale))}, [settings.reduceMotion, settings.fontSizeScale])+ if (!hydrated) {+ return <div className="root" />+ }+return <Panel />}diff --git a/src/components/Panel.tsx b/src/components/Panel.tsxindex b8ea954..cd12a65 100644--- a/src/components/Panel.tsx+++ b/src/components/Panel.tsx@@ -48,6 +48,17 @@ export function Panel() {const emojiMounted = emojiMountedRef.currentconst edgeHintActive = useStore((s) => s.edgeHintActive)const edgeTransition = useStore((s) => s.edgeTransition)+ const [startupBeacon, setStartupBeacon] = useState(true)+ const [mounted, setMounted] = useState(false)++ useEffect(() => {+ setMounted(true)+ // Graceful startup fade-in intro for the trigger bar on launch+ const timer = window.setTimeout(() => {+ setStartupBeacon(false)+ }, 2200)+ return () => window.clearTimeout(timer)+ }, [])useEffect(() => {if (!open) {@@ -217,24 +228,25 @@ export function Panel() {const isTop = settings.stickPosition === 'top'const isHorizontal = isTop+ const isTransitioning = !!edgeTransition?.active+ const isVisuallyOpen = isTransitioning+ ? edgeTransition.stage === 'expanding'+ : open+let containerClass = 'blade-container'if (isRight) containerClass += ' blade-right'else if (isTop) containerClass += ' blade-top'else containerClass += ' blade-left'if (isHorizontal) containerClass += ' horizontal-dock'+ if (isVisuallyOpen) containerClass += ' is-open'+ if (isTransitioning) containerClass += ' is-transitioning'const reduceMotion = !!settings.reduceMotion- const bounceOpen = !!settings.bounceAnimation+ // Single Apple-like reveal curve (no overshoot branch — bounce was dead+ // code with no UI surface; the expo ease settles without ringing).const clipTransition = reduceMotion? 'clip-path 0.01s linear'- : bounceOpen- ? 'clip-path 0.44s cubic-bezier(0.175, 0.885, 0.32, 1.08)'- : 'clip-path 0.32s cubic-bezier(0.22, 1, 0.36, 1)'-- const isTransitioning = !!edgeTransition?.active- const isVisuallyOpen = isTransitioning- ? edgeTransition.stage === 'expanding'- : open+ : 'clip-path 0.32s cubic-bezier(0.22, 1, 0.36, 1)'let currentTransition = clipTransitionlet currentOpacity = 1@@ -250,9 +262,7 @@ export function Panel() {currentTransition = 'opacity 0.12s ease-out'currentOpacity = 1} else if (edgeTransition.stage === 'expanding') {- currentTransition = bounceOpen- ? 'clip-path 0.34s cubic-bezier(0.175, 0.885, 0.32, 1.08)'- : 'clip-path 0.30s cubic-bezier(0.16, 1, 0.3, 1)'+ currentTransition = 'clip-path 0.30s cubic-bezier(0.16, 1, 0.3, 1)'currentOpacity = 1}}@@ -261,37 +271,28 @@ export function Panel() {position: 'absolute',zIndex: 10,pointerEvents: isTransitioning ? 'none' : open ? 'auto' : 'none',- transition: currentTransition,+ transition: mounted ? currentTransition : 'none',opacity: currentOpacity}if (isTransitioning) {containerStyle.willChange = 'clip-path, opacity'}- let originX = 0- let originY = 0.5+ // Static centering via plain CSS transform (framer x/y shorthands removed+ // with the bounce cleanup — same visual placement, no runtime needed).if (isRight) {containerStyle.top = topOffset- containerStyle.y = '-50%'+ containerStyle.transform = 'translateY(-50%)'containerStyle.right = 0- originX = 1- originY = 0.5} else if (isTop) {containerStyle.top = 0containerStyle.left = '50%'- containerStyle.x = '-50%'- containerStyle.y = 0- originX = 0.5- originY = 0+ containerStyle.transform = 'translate(-50%, 0)'} else {containerStyle.top = topOffset- containerStyle.y = '-50%'+ containerStyle.transform = 'translateY(-50%)'containerStyle.left = 0- originX = 0- originY = 0.5}- containerStyle.originX = originX- containerStyle.originY = originYconst alignment = settings.triggerAlignment || 'center'let insetTop = `calc(50% - ${halfTrigger}px)`@@ -342,39 +343,27 @@ export function Panel() {return (<div className="root"><CopyIndicatorCurve />- <motion.div+ <divclassName={containerClass}- initial={false}onDragEnter={onDragEnter}onDragOver={onDragOver}onDragLeave={onDragLeave}onDrop={onDrop}style={containerStyle}- animate={- bounceOpen && !reduceMotion- ? isVisuallyOpen- ? { scaleX: 1, scaleY: 1 }- : { scaleX: 0.97, scaleY: 0.98 }- : { scaleX: 1, scaleY: 1 }- }- transition={- reduceMotion- ? { duration: 0.01 }- : bounceOpen- ? { duration: 0.32, ease: [0.16, 1, 0.3, 1] }- : { duration: 0.32, ease: [0.22, 1, 0.36, 1] }- }>- {/* Edge Location Hint Beacon (Ultra-subtle fast hairline pulse when touching edge at wrong position) */}+ {/* Edge Trigger Bar & Location Hint Beacon (Startup fade-in intro + pulse on wrong-position touch) */}<AnimatePresence>- {!open && edgeHintActive && (settings.showEdgeLocationHint ?? false) && (+ {!open && (startupBeacon || (edgeHintActive && (settings.showEdgeLocationHint ?? false))) && (<motion.divkey="edge-location-beacon"initial={{ opacity: 0 }}- animate={{ opacity: 0.5 }}+ animate={{ opacity: startupBeacon ? 0.8 : 0.5 }}exit={{ opacity: 0 }}- transition={{ duration: 0.18, ease: 'easeOut' }}+ transition={{+ duration: reduceMotion ? 0.01 : startupBeacon ? 0.5 : 0.18,+ ease: [0.16, 1, 0.3, 1]+ }}style={isHorizontal? {@@ -384,8 +373,8 @@ export function Panel() {top: 0,height: 2,boxSizing: 'border-box',- background: 'linear-gradient(to right, transparent, rgba(255, 255, 255, 0.65) 25%, rgba(255, 255, 255, 0.65) 75%, transparent)',- boxShadow: '0 0 6px rgba(255, 255, 255, 0.3)',+ background: 'linear-gradient(to right, transparent, rgba(255, 255, 255, 0.75) 20%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.75) 80%, transparent)',+ boxShadow: '0 0 8px rgba(255, 255, 255, 0.4)',borderRadius: '999px',pointerEvents: 'none',zIndex: 99@@ -397,8 +386,8 @@ export function Panel() {[isRight ? 'right' : 'left']: 0,width: 2,boxSizing: 'border-box',- background: 'linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.65) 25%, rgba(255, 255, 255, 0.65) 75%, transparent)',- boxShadow: '0 0 6px rgba(255, 255, 255, 0.3)',+ background: 'linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.75) 20%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.75) 80%, transparent)',+ boxShadow: '0 0 8px rgba(255, 255, 255, 0.4)',borderRadius: isRight ? '999px 0 0 999px' : '0 999px 999px 0',pointerEvents: 'none',zIndex: 99@@ -409,12 +398,12 @@ export function Panel() {</AnimatePresence>{isTop && (<>- <div className="flare-horizontal flare-top-left">+ <div className="flare-horizontal flare-top-left" style={{ opacity: isVisuallyOpen ? 1 : 0 }}><svg width="32" height="30" viewBox="0 0 32 30" fill="none" xmlns="http://www.w3.org/2000/svg" shapeRendering="geometricPrecision"><path d="M 0 0 C 13.43 0 30 16.57 30 30 L 32 30 L 32 0 Z" fill="#000000" /></svg></div>- <div className="flare-horizontal flare-top-right">+ <div className="flare-horizontal flare-top-right" style={{ opacity: isVisuallyOpen ? 1 : 0 }}><svg width="32" height="30" viewBox="0 0 32 30" fill="none" xmlns="http://www.w3.org/2000/svg" shapeRendering="geometricPrecision"><path d="M 2 30 C 2 16.57 18.57 0 32 0 L 0 0 L 0 30 Z" fill="#000000" /></svg>@@ -423,12 +412,12 @@ export function Panel() {)}{!isHorizontal && (isRight ? (<>- <div className="flare-top flare-right">+ <div className="flare-top flare-right" style={{ opacity: isVisuallyOpen ? 1 : 0 }}><svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M 30 0 L 30 30 L 0 30 A 30 30 0 0 0 30 0 Z" fill="#000000" /></svg></div>- <div className="flare-bottom flare-right">+ <div className="flare-bottom flare-right" style={{ opacity: isVisuallyOpen ? 1 : 0 }}><svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M 30 30 L 30 0 L 0 0 A 30 30 0 0 1 30 30 Z" fill="#000000" /></svg>@@ -436,12 +425,12 @@ export function Panel() {</>) : (<>- <div className="flare-top">+ <div className="flare-top" style={{ opacity: isVisuallyOpen ? 1 : 0 }}><svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M 0 0 L 0 30 L 30 30 A 30 30 0 0 1 0 0 Z" fill="#000000" /></svg></div>- <div className="flare-bottom">+ <div className="flare-bottom" style={{ opacity: isVisuallyOpen ? 1 : 0 }}><svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M 0 30 L 0 0 L 30 0 A 30 30 0 0 0 0 30 Z" fill="#000000" /></svg>@@ -568,7 +557,7 @@ export function Panel() {<PreviewFlyout isRight={isRight} /><IndicatorStyleFlyout isRight={isRight} /><LanguageFlyout isRight={isRight} />- </motion.div>+ </div></div>)}diff --git a/src/styles/panel.css b/src/styles/panel.cssindex 21016e9..828e0bd 100644--- a/src/styles/panel.css+++ b/src/styles/panel.css@@ -50,6 +50,7 @@}.blade-container.blade-top .blade {margin: 0 auto;+ width: min(calc(100vw - 60px), 1080px);border-radius: 0 0 24px 24px;}@@ -64,6 +65,8 @@display: flex;background: linear-gradient(to right, #000000 30px, transparent 30px);justify-content: flex-end;+ opacity: 0;+ transition: opacity 0.2s ease;}.flare-top.flare-right, .flare-bottom.flare-right {left: auto;@@ -90,6 +93,8 @@height: 30px;pointer-events: none;z-index: -1;+ opacity: 0;+ transition: opacity 0.2s ease;}.flare-horizontal svg {width: 32px;@@ -105,16 +110,26 @@top: 0;}-/* CSS transition for clip-path (Framer Motion can't interpolate calc() properly).- cubic-bezier(0.22, 1, 0.36, 1) is an exponential ease-out — fast initial- velocity that decelerates to zero, giving the panel a crisp "snapping open"- feel without overshoot or bounce. 0.28s matches Framer Motion's exit curve 1-to-1. */-.blade-container {- transition: clip-path 0.32s cubic-bezier(0.22, 1, 0.36, 1);+.blade-container.is-open .flare-top,+.blade-container.is-open .flare-bottom,+.blade-container.is-open .flare-horizontal,+.blade-container.is-transitioning .flare-top,+.blade-container.is-transitioning .flare-bottom,+.blade-container.is-transitioning .flare-horizontal {+ opacity: 1;}/* Parent container solid block extension to prevent screen edge blur transparency */.blade-container::before {+ opacity: 0;+ transition: opacity 0.2s ease;+}+.blade-container.is-open::before,+.blade-container.is-transitioning::before {+ opacity: 1;+}++.blade-container.blade-left::before {content: '';position: absolute;top: 0;@@ -126,8 +141,16 @@z-index: -2;}.blade-container.blade-right::before {+ content: '';+ position: absolute;+ top: 0;+ bottom: 0;left: auto;right: -30px;+ width: 31px;+ background: #000000;+ pointer-events: none;+ z-index: -2;}.blade-container.blade-top::before {content: '';