Skip to content

Commit

Permalink
fix: show move cursor when hovering elements bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjuanes authored Mar 19, 2023
1 parent c0f0898 commit 21546a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions folio-core/components/Bounds.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from "react";
import {CURSORS} from "../constants.js";

export const Bounds = props => {
const offset = props.offset / props.zoom;
Expand All @@ -11,6 +12,7 @@ export const Bounds = props => {
fill={props.fillColor}
stroke={props.strokeColor}
strokeWidth={props.strokeWidth / props.zoom}
style={props.style}
onPointerDown={props.onPointerDown}
/>
);
Expand All @@ -23,6 +25,9 @@ Bounds.defaultProps = {
// fillOpacity: "0.2",
strokeColor: "#0d6efd",
strokeWidth: 2,
style: {
cursor: CURSORS.MOVE,
},
zoom: 1,
onPointerDown: null,
};

0 comments on commit 21546a1

Please sign in to comment.