enhancement sliders now apply on change as on slide is too slow
This commit is contained in:
parent
a18b08f728
commit
6ced0efebc
1 changed files with 5 additions and 5 deletions
|
@ -262,7 +262,7 @@ function ComicBook(id, srcs, opts) {
|
|||
step: 10,
|
||||
min: -1000,
|
||||
max: 1000,
|
||||
slide: function(event, ui) {
|
||||
change: function(event, ui) {
|
||||
ComicBook.prototype.enhance.brightness({ brightness: ui.value });
|
||||
}
|
||||
})
|
||||
|
@ -271,10 +271,10 @@ function ComicBook(id, srcs, opts) {
|
|||
.append(
|
||||
$("<div id='cb-contrast' class='cb-option'></div>").slider({
|
||||
value: 0,
|
||||
step: 0.1,
|
||||
step: 0.001,
|
||||
min: 0,
|
||||
max: 1,
|
||||
slide: function(event, ui) {
|
||||
change: function(event, ui) {
|
||||
ComicBook.prototype.enhance.brightness({ contrast: ui.value });
|
||||
}
|
||||
})
|
||||
|
@ -283,10 +283,10 @@ function ComicBook(id, srcs, opts) {
|
|||
.append(
|
||||
$("<div id='cb-sharpen' class='cb-option'></div>").slider({
|
||||
value: 0,
|
||||
step: 0.1,
|
||||
step: 0.001,
|
||||
min: 0,
|
||||
max: 1,
|
||||
slide: function(event, ui) {
|
||||
change: function(event, ui) {
|
||||
ComicBook.prototype.enhance.sharpen({ amount: ui.value });
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue