We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3e3eef commit bdede29Copy full SHA for bdede29
guides/assets/javascripts/guides.js
@@ -60,10 +60,10 @@
60
61
if ('matchMedia' in window) {
62
var mediaQueryList = window.matchMedia(`(max-width: ${MOBILE_WIDTH_FROM_STYLE_CSS_BREAKPOINT}px)`);
63
- isMobile = mediaQueryList.matches ? 'auto' : 'smooth';
+ isMobile = mediaQueryList.matches;
64
65
mediaQueryList.addEventListener('change', function (ev) {
66
- isMobile = ev.matches ? 'auto' : 'smooth';
+ isMobile = ev.matches;
67
});
68
} else {
69
window.addEventListener('resize', function onResize() {
0 commit comments