Skip to content

Commit e4898fd

Browse files
committed
Spinner: Added comment with formula that approximates current incrementing logic.
1 parent b10c4cd commit e4898fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/jquery.ui.spinner.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ $.widget( "ui.spinner", {
234234
}
235235

236236
// TODO refactor, maybe figure out some non-linear math
237+
// x*x*x/50000 - x*x/500 + 17*x/200 + 1
237238
var newVal = this.value() + step * (this.options.incremental &&
238239
this.counter > 20
239240
? this.counter > 100

0 commit comments

Comments
 (0)