aboutsummaryrefslogtreecommitdiff
path: root/include/Body.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-06-10 00:46:59 +0200
committerdec05eba <dec05eba@protonmail.com>2021-06-10 00:48:58 +0200
commit518a7685c411b5f3f75091298e6afe6fab8e0303 (patch)
tree58ab55042873c68633816bb4f3a46d132a772b21 /include/Body.hpp
parent78fce9e810e48095be9d1a81a31df49db9a4d5b3 (diff)
Smoother body movement with unknown image size
Diffstat (limited to 'include/Body.hpp')
-rw-r--r--include/Body.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/Body.hpp b/include/Body.hpp
index abf0d4b..623afca 100644
--- a/include/Body.hpp
+++ b/include/Body.hpp
@@ -150,9 +150,9 @@ namespace QuickMedia {
std::vector<size_t> replies;
std::string post_number;
void *userdata; // Not managed, should be deallocated by whoever sets this
- float prev_last_loaded_height = 0.0f;
- float last_loaded_height = 0.0f;
- float current_loaded_height = 0.0f;
+ float loaded_height = 0.0f;
+ float loaded_image_height = 0.0f;
+ float loaded_content_height = 0.0f;
FetchStatus embedded_item_status = FetchStatus::NONE;
// Important! Should refer to a new BodyItem, not one that already exists in the body.
// TODO: Allow referring to an existing body item. This doesn't work properly at the moment because max width of text and line count calculation getting messed up