-
Notifications
You must be signed in to change notification settings - Fork 22
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
Rotary control should be shown in counterclockwise #1066
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, except I'd syntactically prefer to just use -
instead of multiplying by -1
. This should not be a functional change.
@@ -196,18 +196,18 @@ export class Form extends SimpleElement { | |||
onchange: () => { | |||
let value = parseFloat(inputElement.value); | |||
this._fieldChanging(fieldItem.key, value); | |||
rotaryControl.value = value * -1; | |||
rotaryControl.value = -1 * value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rotaryControl.value = -1 * value; | |
rotaryControl.value = -value; |
}, | ||
}); | ||
const rotaryControl = html.createDomElement("rotary-control", { | ||
value: fieldItem.value, | ||
value: -1 * fieldItem.value, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
value: -1 * fieldItem.value, | |
value: -fieldItem.value, |
Fixes #1065.