We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47aff8c commit d7f18b7Copy full SHA for d7f18b7
flixel/addons/ui/FlxSlider.hx
@@ -274,7 +274,7 @@ class FlxSlider extends #if (flixel < "5.7.0") FlxSpriteGroup #else FlxSpriteCon
274
#if (flixel >= "5.7.0")
275
final camera = getCameras()[0];// else use this.camera
276
#end
277
- final mouse = FlxG.mouse.getScreenPosition(camera);
+ final mouse = FlxG.mouse.getViewPosition(camera);
278
if (FlxMath.pointInFlxRect(mouse.x, mouse.y, _bounds))
279
{
280
if (hoverAlpha != 1)
@@ -293,7 +293,7 @@ class FlxSlider extends #if (flixel < "5.7.0") FlxSpriteGroup #else FlxSpriteCon
293
294
if (FlxG.mouse.pressed)
295
296
- handle.x = FlxG.mouse.screenX;
+ handle.x = FlxG.mouse.viewX;
297
updateValue();
298
299
#if FLX_SOUND_SYSTEM
0 commit comments