mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
compose: Fix banners running off the screen.
We introduce a scrollable region, with a simplebar scrollbar. Fixes: #25115.
This commit is contained in:
committed by
Tim Abbott
parent
b9223088f3
commit
980f7df376
@@ -295,8 +295,11 @@ export function initialize_kitchen_sink_stuff() {
|
||||
|
||||
// Ignore wheel events in the compose area which weren't already handled above.
|
||||
$("#compose").on("wheel", (e) => {
|
||||
// Except for the stream select dropdown, which still needs scroll events.
|
||||
if ($(e.target).parents(".dropdown-list-body").length > 0) {
|
||||
// Except for the stream select dropdown and compose banners, which still needs scroll events.
|
||||
if (
|
||||
$(e.target).closest(".dropdown-list-body").length ||
|
||||
$(e.target).closest("#compose_banners").length
|
||||
) {
|
||||
return;
|
||||
}
|
||||
e.stopPropagation();
|
||||
|
||||
Reference in New Issue
Block a user