Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement step UI parameter for numeric value in normal mode #58

Merged
merged 1 commit into from
Oct 22, 2023

Conversation

abey79
Copy link
Owner

@abey79 abey79 commented Oct 22, 2023

So far, step would operate only in slider mode for numeric types:

#[derive(Sketch)]
struct MySketch {
    // OK: `step` works
    #[param(slider, step = 10)]
    my_param: u64,

    // NOK: `step` compiles, but has no effect
    #[param(step = 10)]
    my_other_param: u64,
}

With this PR, step works also works on normal mode.

@abey79 abey79 merged commit 02ec877 into master Oct 22, 2023
4 checks passed
@abey79 abey79 deleted the dragvalue-speed branch October 22, 2023 17:16
@abey79 abey79 added the whiskers Relates to whiskers or whiskers-derive label Dec 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
whiskers Relates to whiskers or whiskers-derive
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant