Skip to content

Commit

Permalink
✨ Reduce alpha on node hover
Browse files Browse the repository at this point in the history
  • Loading branch information
chanjunren committed Feb 9, 2025
1 parent b9627e8 commit 588439d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vaultusaurus",
"version": "2.0.9",
"version": "2.0.10",
"description": "Utilities for publishing Obsidian markdown documents to Docusaurus",
"keywords": [
"mdast",
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/hooks/useGraphNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function useGraphNode(

const dragStarted = useCallback((event) => {
if (!event.active && simulation.current) {
simulation.current.alphaTarget(1).restart();
simulation.current.alphaTarget(0.1).restart();
}
event.subject.fx = event.x;
event.subject.fy = event.y;
Expand Down

0 comments on commit 588439d

Please sign in to comment.