2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fixed position of selected X in linear chart animations.

This commit is contained in:
23rd
2023-09-05 17:03:08 +03:00
committed by John Preston
parent 20c2250abb
commit 54d5358b75
9 changed files with 83 additions and 65 deletions

View File

@@ -75,9 +75,6 @@ private:
[[nodiscard]] Limits currentHeightLimits() const;
[[nodiscard]] Limits currentFooterHeightLimits() const;
[[nodiscard]] Limits finalHeightLimits() const;
[[nodiscard]] float64 detailsProgress(
crl::time now,
const Limits &appearedOnXLimits) const;
[[nodiscard]] bool animating() const;
[[nodiscard]] bool footerAnimating() const;
[[nodiscard]] bool isFPSSlow() const;
@@ -146,8 +143,8 @@ private:
struct {
base::unique_qptr<PointDetailsWidget> widget;
float64 currentX = 0;
Limits appearedOnXLimits;
Ui::Animations::Basic animation;
bool hideOnAnimationEnd = false;
} _details;
struct {