Skip to content

Setting a sliders "min" to something higher than 0 blocks the slider #13

@cinam0n

Description

@cinam0n

If you use a slider menu element and set "min" to 1 and "value" to 1, the slider gets stuck at 1 and doesn’t move up.
//Edit: Removing the following in app.js & client/main.lua fixes the issue:

if (min > 0 && min == elem.value) elem.value = 0;

My item-setup:

{["label"] = "Example", ["value"] = 1, ["desc"] = "Example description", ["type"] = "slider", ["min"] = 1, ["max"] = 4, ["hop"] = 1}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions