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

Add scale limit #38

Merged
merged 1 commit into from
Nov 15, 2023
Merged

Add scale limit #38

merged 1 commit into from
Nov 15, 2023

Conversation

slimbuck
Copy link
Member

Limit scale input to positive values.

@slimbuck slimbuck added the enhancement New feature or request label Nov 15, 2023
@slimbuck slimbuck requested a review from a team November 15, 2023 12:37
@slimbuck slimbuck self-assigned this Nov 15, 2023
@@ -610,7 +610,9 @@ class ControlPanel extends Container {
const scaleInput = new NumericInput({
class: 'control-element-expand',
precision: 2,
value: 1
value: 1,
min: 0.01,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if they can scale up by 10k, why not down as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried, but min must be a multiple of precision (which itself must be 2 for natural scaling).

@slimbuck slimbuck merged commit b28e40f into main Nov 15, 2023
@slimbuck slimbuck deleted the v0.10.4 branch November 15, 2023 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants