From ac5083633b289008811402de858cef691c7106f9 Mon Sep 17 00:00:00 2001 From: Andrey Etumyan Date: Fri, 31 Oct 2014 22:38:11 +0400 Subject: [PATCH] Combining oninput and onchange events for the FPS counter. --- src/js/controller/AnimatedPreviewController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/controller/AnimatedPreviewController.js b/src/js/controller/AnimatedPreviewController.js index d20e1e2f..59d29aca 100644 --- a/src/js/controller/AnimatedPreviewController.js +++ b/src/js/controller/AnimatedPreviewController.js @@ -22,7 +22,7 @@ // the oninput event won't work on IE10 unfortunately, but at least will provide a // consistent behavior across all other browsers that support the input type range // see https://bugzilla.mozilla.org/show_bug.cgi?id=853670 - $("#preview-fps")[0].addEventListener('change', this.onFPSSliderChange.bind(this)); + $("#preview-fps").on('input change', this.onFPSSliderChange.bind(this)); document.querySelector(".right-column").style.width = Constants.ANIMATED_PREVIEW_WIDTH + 'px'; this.toggleOnionSkinEl = document.querySelector(".preview-toggle-onion-skin");