From 4fde4e7c0d945e96eafb5b64b46b4a031f39e083 Mon Sep 17 00:00:00 2001 From: Daniil Fadeev Date: Mon, 12 Jun 2023 23:03:56 +0300 Subject: [PATCH] popovers: Prevent the popover from closing on scroll. This commit prevent popover closure when scrolling reaches the top or bottom. Fixes: #25967. --- web/styles/zulip.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/styles/zulip.css b/web/styles/zulip.css index 6296b23b20..195e2f23e7 100644 --- a/web/styles/zulip.css +++ b/web/styles/zulip.css @@ -3065,6 +3065,9 @@ select.invite-as { /* `simplebar-content-wrapper` has `tabindex=0` set, which makes it focusable but we don't want it to have an outline when focused anywhere in the app. */ outline: none; + + /* This prevents the popover from closing once the top/bottom is reached */ + overscroll-behavior: contain; } .dropdown-list-container {