--- a/org.symbian.tools.wrttools.previewer/preview/script/accelerometer.js Thu Jul 01 15:01:44 2010 -0700
+++ b/org.symbian.tools.wrttools.previewer/preview/script/accelerometer.js Thu Jul 01 15:41:21 2010 -0700
@@ -44,13 +44,16 @@
};
$("#" + buttonId).mousedown(function() {
- timeout = window.setTimeout(function() {
- id = window.setInterval(function() {
- timeout = false;
- adjust(input, fn, increment);
- }, 10);
- }, 250);
- }).mouseup(stop).focusout(stop).blur(stop).mouseleave(stop);
+ if (!timeout && !id) {
+ timeout = window.setTimeout(function() {
+ id = window.setInterval(function() {
+ timeout = false;
+ adjust(input, fn, increment);
+ }, 10);
+ }, 250);
+ }
+ }).mouseup(stop).focusout(stop).blur(stop).mouseleave(stop).dblclick(
+ stop);
}
function adjust(input, callback, increment) {