From ff339ec656106ad5aabea643c21bd2ece88ef456 Mon Sep 17 00:00:00 2001 From: Elliott Kember Date: Thu, 7 Nov 2024 17:35:39 +1300 Subject: [PATCH 1/2] Fix touchable heights --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index d288b65..cba0ec5 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -509,7 +509,7 @@ export class Slider extends PureComponent { ); size.height = Math.max( 0, - thumbTouchSize?.height || 0 - containerSize.height, + (thumbTouchSize?.height || 0) - containerSize.height, ); } From 1dd57421b1a168ecc342dc84144d788fade15409 Mon Sep 17 00:00:00 2001 From: Elliott Kember Date: Fri, 8 Nov 2024 07:23:46 +1300 Subject: [PATCH 2/2] Also width --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index cba0ec5..60ecacc 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -505,7 +505,7 @@ export class Slider extends PureComponent { if (allMeasured) { size.width = Math.max( 0, - thumbTouchSize?.width || 0 + thumbSize.width, + (thumbTouchSize?.width || 0) - thumbSize.width, ); size.height = Math.max( 0,