0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Removed focus from slider after use

refs https://github.com/TryGhost/Team/issues/1249

If we leave focus on the slider than after interacting with it, it will
capture scroll events and move the slider rather than scrolling the
page.
This commit is contained in:
Fabien egg O'Carroll 2021-12-15 16:59:25 +02:00
parent c745211ee4
commit 6f97396c1b

View file

@ -22,6 +22,10 @@
updateSlider();
});
input.addEventListener('change', function () {
input.blur();
});
window.addEventListener('resize', function () {
updateDimensions();
});