Skip to content

Commit

Permalink
fix: reverse offset to match css positioning system
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This reverses the direction that elements will move according to offsetY
  • Loading branch information
dominictwlee committed May 6, 2020
1 parent e6cf87a commit 9ea5291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Spotlight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const Spotlight = forwardRef<Ref<any>, SpotlightProps>((props, ref) => {
? globalOffsetX
: 0),
calculateOffsetY(dimensions, customizedDimensions) +
-(posOffsetY
(posOffsetY
? posOffsetY
: globalOffsetY
? globalOffsetY
Expand Down

0 comments on commit 9ea5291

Please sign in to comment.