Skip to content

Commit

Permalink
Fix for reduce motion on Edge
Browse files Browse the repository at this point in the history
  • Loading branch information
madalingorbanescu committed Jan 15, 2020
1 parent f336224 commit 102e4b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ function () {
_this2.updateOnScroll();
});
var mediaQuery = window.matchMedia('(prefers-reduced-motion: reduce)');
mediaQuery.addEventListener('change', function () {
mediaQuery.addListener(function () {
_this2.reduceMotion = mediaQuery.matches;

_this2.updateOnScroll();
Expand Down
Loading

0 comments on commit 102e4b1

Please sign in to comment.