IMPROVED - Make dock feel like the real macOS dock
- Stronger magnification (50 to 92) with snappier spring tracking. - macOS-style launch bounce on click; running-dot indicator for the active page (works with fixed app-icon images, no recolor). - Per-item icon paths in navItems so real macOS app icons can be dropped in. - Drop the now-unused -active icon variants.
This commit is contained in:
@@ -123,10 +123,12 @@ const DockIcon = ({
|
||||
[size, targetSize, size],
|
||||
);
|
||||
|
||||
// Snappy, near-instant tracking with a touch of smoothing — closer to how the
|
||||
// real macOS dock follows the cursor than a soft/bouncy spring.
|
||||
const scaleSize = useSpring(sizeTransform, {
|
||||
mass: 0.1,
|
||||
stiffness: 150,
|
||||
damping: 12,
|
||||
stiffness: 280,
|
||||
damping: 22,
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user