Skip to content

Commit d7f18b7

Browse files
Fix more deprecation warnings.
1 parent 47aff8c commit d7f18b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flixel/addons/ui/FlxSlider.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ class FlxSlider extends #if (flixel < "5.7.0") FlxSpriteGroup #else FlxSpriteCon
274274
#if (flixel >= "5.7.0")
275275
final camera = getCameras()[0];// else use this.camera
276276
#end
277-
final mouse = FlxG.mouse.getScreenPosition(camera);
277+
final mouse = FlxG.mouse.getViewPosition(camera);
278278
if (FlxMath.pointInFlxRect(mouse.x, mouse.y, _bounds))
279279
{
280280
if (hoverAlpha != 1)
@@ -293,7 +293,7 @@ class FlxSlider extends #if (flixel < "5.7.0") FlxSpriteGroup #else FlxSpriteCon
293293

294294
if (FlxG.mouse.pressed)
295295
{
296-
handle.x = FlxG.mouse.screenX;
296+
handle.x = FlxG.mouse.viewX;
297297
updateValue();
298298

299299
#if FLX_SOUND_SYSTEM

0 commit comments

Comments
 (0)