From 9ea529162b60d7ea4ace7250ce11ec1a079e75b1 Mon Sep 17 00:00:00 2001 From: Dominic Lee Date: Wed, 6 May 2020 19:51:05 +0100 Subject: [PATCH] fix: reverse offset to match css positioning system BREAKING CHANGE: This reverses the direction that elements will move according to offsetY --- src/Spotlight.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Spotlight.tsx b/src/Spotlight.tsx index 64a7e88..67954b3 100644 --- a/src/Spotlight.tsx +++ b/src/Spotlight.tsx @@ -108,7 +108,7 @@ const Spotlight = forwardRef, SpotlightProps>((props, ref) => { ? globalOffsetX : 0), calculateOffsetY(dimensions, customizedDimensions) + - -(posOffsetY + (posOffsetY ? posOffsetY : globalOffsetY ? globalOffsetY