mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Spinner: Added comment with formula that approximates current incrementing logic.
This commit is contained in:
parent
b10c4cdab5
commit
e4898fdfc6
1
ui/jquery.ui.spinner.js
vendored
1
ui/jquery.ui.spinner.js
vendored
@ -234,6 +234,7 @@ $.widget( "ui.spinner", {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO refactor, maybe figure out some non-linear math
|
// TODO refactor, maybe figure out some non-linear math
|
||||||
|
// x*x*x/50000 - x*x/500 + 17*x/200 + 1
|
||||||
var newVal = this.value() + step * (this.options.incremental &&
|
var newVal = this.value() + step * (this.options.incremental &&
|
||||||
this.counter > 20
|
this.counter > 20
|
||||||
? this.counter > 100
|
? this.counter > 100
|
||||||
|
Loading…
Reference in New Issue
Block a user