Skip to content

Commit

Permalink
fix: update zoomable options and control style (#455)
Browse files Browse the repository at this point in the history
* fix: update zoomable options

* fix: update control style
  • Loading branch information
DanielLeefu authored Feb 4, 2024
1 parent edb2816 commit 423d0e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/components/Graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ const XFlowGraph = (props: GraphOptions) => {
graph.options.mousewheel = {
...Options.defaults.mousewheel,
...zoomOptions,
enabled: true,
};
} else {
graph.disableMouseWheel();
Expand Down
4 changes: 4 additions & 0 deletions packages/core/src/styles/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@
user-select: none;
touch-action: manipulation;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: rgb(0, 0, 0);

&:disabled {
background-color: rgba(0, 0, 0, 0.04);
Expand Down

0 comments on commit 423d0e7

Please sign in to comment.