From 6ced0efebc7cd256fa63459fd72a276f4b7d83f3 Mon Sep 17 00:00:00 2001 From: Bala Clark Date: Fri, 16 Sep 2011 15:43:51 +0200 Subject: [PATCH] enhancement sliders now apply on change as on slide is too slow --- lib/ComicBook.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ComicBook.js b/lib/ComicBook.js index 6ee288d..93fc689 100755 --- a/lib/ComicBook.js +++ b/lib/ComicBook.js @@ -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( $("
").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( $("
").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 }); } })