@@ -229,35 +229,35 @@ class FlxSlider extends #if (flixel < version("5.7.0")) FlxSpriteGroup #else Flx
229229 body = new FlxSprite (offset .x , offset .y );
230230 var colorKey : String = " slider:W=" + _width + " H=" + _height + " C=" + _color .toHexString () + " T=" + _thickness ;
231231 body .makeGraphic (_width , _height , 0 , false , colorKey );
232- body .scrollFactor .set ();
232+ body .scrollFactor .zero ();
233233 FlxSpriteUtil .drawLine (body , 0 , _height / 2 , _width , _height / 2 , {color : _color , thickness : _thickness });
234234
235235 handle = new FlxSprite (offset .x , offset .y );
236236 handle .makeGraphic (_thickness , _height , _handleColor );
237- handle .scrollFactor .set ();
237+ handle .scrollFactor .zero ();
238238
239239 // Creating the texts
240240 nameLabel = new FlxText (offset .x , 0 , _width , varString );
241241 nameLabel .alignment = " center" ;
242242 nameLabel .color = _color ;
243- nameLabel .scrollFactor .set ();
243+ nameLabel .scrollFactor .zero ();
244244
245245 var textOffset : Float = _height + offset .y + 3 ;
246246
247247 valueLabel = new FlxText (offset .x , textOffset , _width );
248248 valueLabel .alignment = " center" ;
249249 valueLabel .color = _handleColor ;
250- valueLabel .scrollFactor .set ();
250+ valueLabel .scrollFactor .zero ();
251251
252252 minLabel = new FlxText (- 50 + offset .x , textOffset , 100 , Std .string (minValue ));
253253 minLabel .alignment = " center" ;
254254 minLabel .color = _color ;
255- minLabel .scrollFactor .set ();
255+ minLabel .scrollFactor .zero ();
256256
257257 maxLabel = new FlxText (_width - 50 + offset .x , textOffset , 100 , Std .string (maxValue ));
258258 maxLabel .alignment = " center" ;
259259 maxLabel .color = _color ;
260- maxLabel .scrollFactor .set ();
260+ maxLabel .scrollFactor .zero ();
261261
262262 // Add all the objects
263263 add (body );
0 commit comments