File tree Expand file tree Collapse file tree 7 files changed +14
-14
lines changed Expand file tree Collapse file tree 7 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ export default function ColorWheelChannelSlider(props: {
21
21
value = { props . value }
22
22
color = { props . color }
23
23
onChange = { props . onChange }
24
- onPointerDown = { props . onFocus }
25
- onPointerUp = { props . onBlur }
24
+ onFocus = { props . onFocus }
25
+ onBlur = { props . onBlur }
26
26
/>
27
27
28
28
< span class = "text-center text-sm" style = { { width : "30px" } } >
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ export default function GrayscaleSlider(props: Props) {
33
33
max = { 1 }
34
34
value = { props . value }
35
35
onChange = { props . onChange }
36
- onPointerDown = { props . onFocus }
37
- onPointerUp = { props . onBlur }
36
+ onFocus = { props . onFocus }
37
+ onBlur = { props . onBlur }
38
38
/>
39
39
</ div >
40
40
< div class = "w-[26px] text-center" > { Math . round ( props . value * 255 ) } </ div >
Original file line number Diff line number Diff line change @@ -29,12 +29,12 @@ export default function HorizontalSlider(props: SliderProps) {
29
29
}
30
30
} ,
31
31
( ) => {
32
- props . onPointerUp ?.( ) ;
32
+ props . onBlur ?.( ) ;
33
33
} ,
34
34
) ;
35
35
36
36
function onPointerDown ( ev : PointerEvent ) {
37
- props . onPointerDown ?.( ) ;
37
+ props . onFocus ?.( ) ;
38
38
registerDragListener ( ev ) ;
39
39
}
40
40
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ export type SliderProps = {
17
17
18
18
disabled ?: boolean ;
19
19
20
- onPointerDown ?( ) : void ;
21
- onPointerUp ?( ) : void ;
20
+ onFocus ?( ) : void ;
21
+ onBlur ?( ) : void ;
22
22
23
23
/**
24
24
* Called whenever the value is changed.
Original file line number Diff line number Diff line change @@ -29,12 +29,12 @@ export default function VerticalSlider(props: SliderProps) {
29
29
}
30
30
} ,
31
31
( ) => {
32
- props . onPointerUp ?.( ) ;
32
+ props . onBlur ?.( ) ;
33
33
} ,
34
34
) ;
35
35
36
36
function onPointerDown ( ev : PointerEvent ) {
37
- props . onPointerDown ?.( ) ;
37
+ props . onFocus ?.( ) ;
38
38
registerDragListener ( ev ) ;
39
39
}
40
40
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ export default function MaterialNodeInspectorNumberInput(
49
49
step = { props . parameter . inputProps . step ?? 0.01 }
50
50
value = { value ( ) }
51
51
onChange = { ( value ) => onChange ( isFloat ? value : Math . round ( value ) ) }
52
- onPointerDown = { props . onFocus }
53
- onPointerUp = { props . onBlur }
52
+ onFocus = { props . onFocus }
53
+ onBlur = { props . onBlur }
54
54
/>
55
55
</ div >
56
56
) ;
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ export default function HorizontalTextureSizeSlider(props: Props) {
29
29
step = { props . value < 128 ? 16 : 32 }
30
30
value = { props . value }
31
31
onChange = { props . onChange }
32
- onPointerDown = { onFocus }
33
- onPointerUp = { onBlur }
32
+ onFocus = { onFocus }
33
+ onBlur = { onBlur }
34
34
/>
35
35
</ div >
36
36
) ;
You can’t perform that action at this time.
0 commit comments