activate gestures in <660px only

This commit is contained in:
r888888888
2017-09-23 13:28:35 -07:00
parent 5a47c91d2b
commit e339c0c919

View File

@@ -37,6 +37,15 @@
}
Danbooru.Post.initialize_gestures = function() {
if (!window.matchMedia) {
return;
}
var mq = window.matchMedia('@media all and (max-width: 660px)');
if (!mq.matches) {
return;
}
var hasNext = $("a[rel~=next]").length > 0;
var hasPrev = $("a[rel~=prev]").length > 0;