Skip to content

Commit

Permalink
Merge pull request thelounge#455 from williamboman/fix/tap-hide-chat-…
Browse files Browse the repository at this point in the history
…prevent-default

client: stop propagation when hiding the chat through click/tapping the chat
  • Loading branch information
xPaw committed Jul 3, 2016
2 parents d2d650b + 4cbf30a commit 7f0fc4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/js/lounge.js
Expand Up @@ -539,7 +539,8 @@ $(function() {
viewport.toggleClass(self.attr("class"));
if (viewport.is(".lt, .rt")) {
e.stopPropagation();
chat.find(".chat").one("click", function() {
chat.find(".chat").one("click", function(e) {
e.stopPropagation();
viewport.removeClass("lt");
});
}
Expand Down

0 comments on commit 7f0fc4d

Please sign in to comment.