diff --git a/client/js/chat.js b/client/js/chat.js index 5dbaa5a6..64c56c0a 100644 --- a/client/js/chat.js +++ b/client/js/chat.js @@ -255,9 +255,17 @@ $(function() { if (touchDevice) { toggle = "touchstart"; } - chat.on(toggle, ".lt, .rt", function() { + + chat.on(toggle, ".lt, .rt", function(e) { var btn = $(this); viewport.toggleClass(btn.attr("class")); + if (viewport.hasClass("lt")) { + e.stopPropagation(); + viewport.find("#main").one(toggle, function(e) { + viewport.removeClass("lt"); + }); + } + }); function toArray(val) {