mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
eslint: Add and enforce space-in-parens lint rule.
This commit is contained in:
@@ -94,8 +94,8 @@ $(function () {
|
||||
var max_scroll = this.scrollHeight - self.innerHeight() - 1;
|
||||
|
||||
e.stopPropagation();
|
||||
if ( ((delta < 0) && (scroll <= 0))
|
||||
|| ((delta > 0) && (scroll >= max_scroll))) {
|
||||
if (((delta < 0) && (scroll <= 0)) ||
|
||||
((delta > 0) && (scroll >= max_scroll))) {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user