Skip to content

Commit

Permalink
fix optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeldking committed Jun 20, 2023
1 parent b540858 commit 31eee77
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Points.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export type PointsProps = {
*/
onPointHovered?: (points: PointBaseProps) => void;
/**
* Callback for when the mouse pointer leaves a point
* Callback for when the mouse pointer leaves the point meshes. Best used to detect when the mouse is no longer over ANY point
*/
onPointHoverLeave: () => void;
onPointerLeave?: () => void;
/**
* The shape of the points. This value must be uniform for all points.
* @default 'sphere'
Expand All @@ -81,7 +81,7 @@ export function Points({
onPointsClicked,
onPointClicked,
onPointHovered,
onPointHoverLeave,
onPointerLeave,
pointShape = 'sphere',
opacity = 1,
material = 'meshMatcap',
Expand Down Expand Up @@ -229,7 +229,7 @@ export function Points({
}
}}
onPointerLeave={() => {
onPointHoverLeave && onPointHoverLeave();
onPointerLeave && onPointerLeave();
}}
>
{geometryEl}
Expand Down

0 comments on commit 31eee77

Please sign in to comment.