Skip to content

Commit

Permalink
fix: add browsingContext as a reactive dependency to updateInternalPo…
Browse files Browse the repository at this point in the history
…sition
  • Loading branch information
martin-pettersson authored and nerdyman committed Apr 5, 2024
1 parent a4b00fa commit e807bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/ReactCompareSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const ReactCompareSlider = forwardRef<
onPositionChange(internalPosition.current);
}
},
[boundsPadding, onPositionChange, portrait],
[boundsPadding, onPositionChange, portrait, browsingContext],
);

// Update internal position when other user controllable props change.
Expand Down

0 comments on commit e807bc9

Please sign in to comment.