Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2914)

Unified Diff: chrome/browser/resources/options/font_settings.js

Issue 194833002: Customized font value slider to listen for both input and change event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/font_settings.js
diff --git a/chrome/browser/resources/options/font_settings.js b/chrome/browser/resources/options/font_settings.js
index 0b3f3f70a9ba731bfc72f755291d81a760911988..1d09f5ae8fb3bb7daca039d0968e19aeedf750cd 100644
--- a/chrome/browser/resources/options/font_settings.js
+++ b/chrome/browser/resources/options/font_settings.js
@@ -34,6 +34,8 @@ cr.define('options', function() {
22, 24, 26, 28, 30, 32, 34, 36, 40, 44, 48, 56, 64, 72];
standardFontRange.addEventListener(
'change', this.standardRangeChanged_.bind(this, standardFontRange));
+ standardFontRange.addEventListener(
+ 'input', this.standardRangeChanged_.bind(this, standardFontRange));
standardFontRange.customChangeHandler =
this.standardFontSizeChanged_.bind(standardFontRange);
@@ -42,6 +44,8 @@ cr.define('options', function() {
18, 20, 22, 24];
minimumFontRange.addEventListener(
'change', this.minimumRangeChanged_.bind(this, minimumFontRange));
+ minimumFontRange.addEventListener(
+ 'input', this.minimumRangeChanged_.bind(this, minimumFontRange));
minimumFontRange.customChangeHandler =
this.minimumFontSizeChanged_.bind(minimumFontRange);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698