File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
demo/src/screens/incubatorScreens Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import {renderBooleanOption} from '../ExampleScreenPresenter';
6
6
const VALUE = 20 ;
7
7
const NEGATIVE_VALUE = - 30 ;
8
8
const MIN = 0 ;
9
- const MAX = Constants . screenWidth - 40 ; // horizontal margins 20
9
+ const MAX = 350 ;
10
10
const INITIAL_MIN = 30 ;
11
11
const INITIAL_MAX = 270 ;
12
12
const COLOR = Colors . blue30 ;
Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ const Thumb = (props: ThumbProps) => {
68
68
// adjust end edge
69
69
newX = end . value ;
70
70
}
71
- if ( ! secondary && newX < gap ||
72
- secondary && newX > end . value - gap ||
71
+ if ( ! secondary && newX <= gap ||
72
+ secondary && newX >= end . value - gap ||
73
73
newX < end . value - gap && newX > start . value + gap ) {
74
74
offset . value = newX ;
75
75
}
You can’t perform that action at this time.
0 commit comments