Skip to content

Commit a083ca4

Browse files
committed
style: in mobile portrait chiudi la barra plugin al tap/click fuori dalla barra
1 parent 6ec4991 commit a083ca4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

assets/src/js/base/sidebar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ $(document).ready(function () {
178178
}
179179
});
180180

181-
// Mobile portrait: chiudi al tap fuori dalla barra
182-
$(document).on('touchstart', function(e) {
181+
// Mobile portrait: chiudi al tap/click fuori dalla barra
182+
$(document).on('touchstart click', function(e) {
183183
if (!isMobilePortrait()) return;
184184
const $t = $(e.target);
185185
if ($t.closest('.control-sidebar').length || $t.closest('.control-sidebar-button').length) return;

0 commit comments

Comments
 (0)