enhancement sliders now apply on change as on slide is too slow

This commit is contained in:
Bala Clark 2011-09-16 15:43:51 +02:00
parent a18b08f728
commit 6ced0efebc

View file

@ -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 });
}
})