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:
parent
c745211ee4
commit
6f97396c1b
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,10 @@
|
|||
updateSlider();
|
||||
});
|
||||
|
||||
input.addEventListener('change', function () {
|
||||
input.blur();
|
||||
});
|
||||
|
||||
window.addEventListener('resize', function () {
|
||||
updateDimensions();
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue