File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -351,10 +351,10 @@ class Button extends PureComponent<Props, ButtonState> {
351
351
352
352
getAccessibleHitSlop ( ) {
353
353
const containerStyle = this . getContainerSizeStyle ( ) ;
354
- const isWidthDefined = containerStyle . width !== undefined || containerStyle . minWidth !== undefined ;
355
- const width = containerStyle . width || containerStyle . minWidth || 0 ;
356
- const widthWithPadding = width + ( containerStyle . paddingHorizontal || containerStyle . padding || 0 ) * 2 ;
357
- const horizontalHitslop = isWidthDefined ? Math . max ( 0 , ( 48 - widthWithPadding ) / 2 ) : 10 ;
354
+ const width =
355
+ ( containerStyle . width || containerStyle . minWidth || 0 ) +
356
+ ( containerStyle . paddingHorizontal || containerStyle . padding || 0 ) * 2 ;
357
+ const horizontalHitslop = width !== 0 ? Math . max ( 0 , ( 48 - width ) / 2 ) : 10 ;
358
358
const verticalHitslop =
359
359
( containerStyle . height
360
360
? Math . max ( 0 , 48 - containerStyle . height )
You can’t perform that action at this time.
0 commit comments