Skip to content

Commit

Permalink
fix(search): insight close touch event passthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
ppoffice committed Nov 3, 2018
1 parent 43f90c6 commit abb1cf8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/js/insight.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@
if (e.type !== 'click' && !touch) {
return;
}
$('.navbar-main').css('pointer-events', 'none');
setTimeout(function(){
$('.navbar-main').css('pointer-events', 'auto');
}, 400);
$main.removeClass('show');
touch = false;
}).on('keydown', function (e) {
Expand Down

1 comment on commit abb1cf8

@ppoffice
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.