Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
tooltip: Hide scroll button tooltip on transition.
Tudor Stefan Pagu3324721eb776
diff --git a/web/src/message_scroll.js b/web/src/message_scroll.jsindex 101568728c9..93d8003948e 100644--- a/web/src/message_scroll.js+++ b/web/src/message_scroll.js@@ -177,4 +177,18 @@ export function initialize() {}}});++ const $show_scroll_to_bottom_button = $("#scroll-to-bottom-button-container").expectOne();+ // Delete the tippy tooltip whenever the fadeout animation for+ // this button is finished. This is necessary because the fading animation+ // confuses Tippy's built-in `data-reference-hidden` feature.+ $show_scroll_to_bottom_button.on("transitionend", (e) => {+ if (e.propertyName === "visibility") {+ const tooltip = $("#scroll-to-bottom-button-clickable-area")[0]._tippy;+ // make sure the tooltip exists and the class is not currently showing+ if (tooltip && !$show_scroll_to_bottom_button.hasClass("show")) {+ tooltip.destroy();+ }+ }+ });}