Work on touch controls

This commit is contained in:
Sam Potts
2017-11-22 00:04:11 +11:00
parent 4b82e89845
commit 7382553a78
12 changed files with 52 additions and 47 deletions
+2 -1
View File
@@ -559,7 +559,8 @@ const utils = {
}
// Get state
const state = utils.is.boolean(input) ? input : !element.getAttribute('aria-pressed');
const pressed = element.getAttribute('aria-pressed') === 'true';
const state = utils.is.boolean(input) ? input : !pressed;
// Set the attribute on target
element.setAttribute('aria-pressed', state);