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

Unified Diff: chrome/browser/resources/settings/controls/settings_toggle_button.js

Issue 2864563002: MD Settings: Fix dragging slider bugging out the Enter key. (Closed)
Patch Set: also fix this for settings-toggle-button Created 3 years, 7 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 | « chrome/browser/resources/settings/controls/settings_toggle_button.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/controls/settings_toggle_button.js
diff --git a/chrome/browser/resources/settings/controls/settings_toggle_button.js b/chrome/browser/resources/settings/controls/settings_toggle_button.js
index 1352bccfeadf21ee4242a8d4dfe60e9c1e330d12..f625ec436c67d6f9ebd7c930c9b2a7673866361e 100644
--- a/chrome/browser/resources/settings/controls/settings_toggle_button.js
+++ b/chrome/browser/resources/settings/controls/settings_toggle_button.js
@@ -26,4 +26,13 @@ Polymer({
this.checked = !this.checked;
this.notifyChangedByUserInteraction();
},
+
+ /**
+ * TODO(scottchen): temporary fix until polymer gesture bug resolved. See:
+ * https://github.com/PolymerElements/paper-slider/issues/186
+ * @private
+ */
+ resetTrackLock_: function() {
+ Polymer.Gestures.gestures.tap.reset();
+ },
});
« no previous file with comments | « chrome/browser/resources/settings/controls/settings_toggle_button.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698