Merge pull request #229 from etumyan/fps-oninput

Combining oninput and onchange events for the FPS counter. Close #225
This commit is contained in:
Julian Descottes 2014-11-01 13:57:49 +01:00
commit 001e35cf7b

View File

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