HaxeFlixel / HaxeFlixel/flixel-ui

FlxSlider / FlxUISlider hitbox issue

Open
#269 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Haxe
Stars
201
Forks
75
PR merge metrics
No merged PRs in 30d

Description

The bug is that the hitbox of the slider is not on the same camera as the slider itself.
This issue seems to have been fixed in a Psych Engine pull request, shadowing the class here
It happens with both FlxSlider and FlxUISlider and I've tested on HashLink and C++ targets.
I've put together a little demo of the issue here

FlxG.camera.zoom = 1;

image

FlxG.camera.zoom = 0.5;

image

I'm not sure if this is a known issue or not but I couldn't find anything about it besides the Psych Engine pull request.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with FlxSlider and FlxUISlider and reproduce the camera-zoom cases from the linked demo, testing both HashLink and C++ targets. Compare their hitbox camera handling with the shadowing change in the linked Psych Engine pull request. Done means the slider hitbox remains aligned with the control when the camera zoom changes.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.