It looks like match() is never called when I resize the window from desktop down to tablet. This is my configuration:
enquire.register("all and (min-width: 980px)"), {
match: function() {
// Code for desktop
}
});
enquire.register("all and (min-width: 650px)"), {
match: function() {
// Code for tablets
}
});
enquire.register("all and (max-width: 649px)"), {
match: function() {
// Code for mobile
}
});
When I resize from i.E. 1000px to 700px, the tablet handler is never called. But when I resize from 200px for mobile to 700px, then the tablet handler is called. Weird. Any ideas why?
It looks like
match()
is never called when I resize the window from desktop down to tablet. This is my configuration:When I resize from i.E.
1000px
to700px
, the tablet handler is never called. But when I resize from200px
for mobile to700px
, then the tablet handler is called. Weird. Any ideas why?