@@ -63,9 +63,9 @@ export class Slider extends View {
63
63
@cssProperty thumbColor : Color ;
64
64
@cssProperty stepSize : number ;
65
65
@cssProperty elevation : number ;
66
- _supressNativeValue : boolean ;
67
- _canChangeValues : boolean = true ;
68
- _needUpdate : boolean = true ;
66
+ mSupressNativeValue : boolean ;
67
+ mCanChangeValues : boolean = true ;
68
+ mNeedUpdate : boolean = true ;
69
69
public value : number ;
70
70
public minValue : number ;
71
71
public maxValue : number ;
@@ -135,12 +135,12 @@ export class Slider extends View {
135
135
this . nativeViewProtected . setStepSize ( value ) ;
136
136
}
137
137
updateValues ( ) {
138
- if ( ! this . _canChangeValues ) {
139
- console . log ( 'test1' )
140
- this . _needUpdate = true ;
138
+ if ( ! this . mCanChangeValues ) {
139
+ console . log ( 'test1' ) ;
140
+ this . mNeedUpdate = true ;
141
141
return ;
142
142
}
143
- console . log ( 'test2' )
143
+ console . log ( 'test2' ) ;
144
144
const min = this . minValue || DEFAULT_MIN ;
145
145
const max = this . maxValue || DEFAULT_MAX ;
146
146
this . nativeViewProtected . setValueFrom ( min ) ;
@@ -153,11 +153,11 @@ export class Slider extends View {
153
153
154
154
public onResumeNativeUpdates ( ) : void {
155
155
// {N} suspends properties update on `_suspendNativeUpdates`. So we only need to do this in onResumeNativeUpdates
156
- this . _canChangeValues = false ;
156
+ this . mCanChangeValues = false ;
157
157
super . onResumeNativeUpdates ( ) ;
158
- this . _canChangeValues = true ;
159
- if ( this . _needUpdate ) {
160
- this . _needUpdate = false ;
158
+ this . mCanChangeValues = true ;
159
+ if ( this . mNeedUpdate ) {
160
+ this . mNeedUpdate = false ;
161
161
this . updateValues ( ) ;
162
162
}
163
163
}
0 commit comments