Kill sync animations entirely, add ref

This commit is contained in:
narcolepticinsomniac 2020-04-28 09:58:38 -04:00
parent 64d20c99de
commit 2fc392a155
2 changed files with 2 additions and 2 deletions

View File

@ -548,7 +548,7 @@ function handleUpdate(style, {reason, method} = {}) {
handleUpdateInstalled(entry, reason); handleUpdateInstalled(entry, reason);
} }
filterAndAppend({entry}).then(sorter.update); filterAndAppend({entry}).then(sorter.update);
if (!entry.matches('.hidden') && reason !== 'import' && !$('#stylus-embedded-options')) { if (!entry.matches('.hidden') && reason !== 'import' && reason !== 'sync') {
animateElement(entry); animateElement(entry);
requestAnimationFrame(() => scrollElementIntoView(entry)); requestAnimationFrame(() => scrollElementIntoView(entry));
} }

View File

@ -9,7 +9,7 @@ setupRadioButtons();
enforceInputRange($('#popupWidth')); enforceInputRange($('#popupWidth'));
setTimeout(splitLongTooltips); setTimeout(splitLongTooltips);
// TODO: add max version to re-enable once crbug.com/996859 is resolved // https://github.com/openstyles/stylus/issues/822
if (!FIREFOX && CHROME >= 3809 && CHROME < 4044) { if (!FIREFOX && CHROME >= 3809 && CHROME < 4044) {
const dropboxOption = $('option[value="dropbox"]'); const dropboxOption = $('option[value="dropbox"]');
dropboxOption.disabled = true; dropboxOption.disabled = true;