#1272 Optimize performance of context buttons visibility switch
This commit is contained in:
parent
97d75aef73
commit
b4e29bf157
|
@ -8081,7 +8081,7 @@ jQuery(async function () {
|
|||
// Check if the click was outside the relevant elements
|
||||
if (!$(e.target).closest('.extraMesButtons, .extraMesButtonsHint').length) {
|
||||
// Transition out the .extraMesButtons first
|
||||
$('.extraMesButtons').transition({
|
||||
$('.extraMesButtons:visible').transition({
|
||||
opacity: 0,
|
||||
duration: 150,
|
||||
easing: 'ease-in-out',
|
||||
|
@ -8089,7 +8089,7 @@ jQuery(async function () {
|
|||
$(this).hide(); // Hide the .extraMesButtons after the transition
|
||||
|
||||
// Transition the .extraMesButtonsHint back in
|
||||
$('.extraMesButtonsHint').show().transition({
|
||||
$('.extraMesButtonsHint:not(:visible)').show().transition({
|
||||
opacity: .2,
|
||||
duration: 150,
|
||||
easing: 'ease-in-out'
|
||||
|
|
|
@ -399,6 +399,7 @@ function switchMessageActions() {
|
|||
power_user.expand_message_actions = value === null ? false : value == "true";
|
||||
$("body").toggleClass("expandMessageActions", power_user.expand_message_actions);
|
||||
$("#expandMessageActions").prop("checked", power_user.expand_message_actions);
|
||||
$('.extraMesButtons, .extraMesButtonsHint').removeAttr('style');
|
||||
}
|
||||
|
||||
function switchUiMode() {
|
||||
|
|
Loading…
Reference in New Issue