Skip to content

Slider doesnt react properly to dimension changes #92

@PGtheVRguy

Description

@PGtheVRguy

When changing the width and height, changes are not applied properly to other values.

To Reproduce
Steps to reproduce the behavior:

  1. Create boilerplate slider code
  2. Set the max value to some value increasing at a constant rate (ex. time)
  3. Add a code to change the width after giving the slider its max value
  4. Watch the rate of change be different from last iteration

This is fairly frustrating since it requires additional unnecessary code and simple math to change other factors.

This isn't just for the max value either, this also affects the height of the inside of the Slider and its curved ends.

Version Numbers

  • Pygame Widgets 1.3.1
  • Pygame 2.6.1
  • Python 3.14.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions