aboutsummaryrefslogtreecommitdiff
path: root/src/Body.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Body.cpp')
-rw-r--r--src/Body.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Body.cpp b/src/Body.cpp
index 5a23694..9b6a5d8 100644
--- a/src/Body.cpp
+++ b/src/Body.cpp
@@ -280,8 +280,10 @@ namespace QuickMedia {
void Body::select_first_item() {
selected_scrolled = 0.0f;
selected_item = 0;
- prev_selected_item = selected_item;
- page_scroll = 0.0f;
+ if(attach_side == AttachSide::TOP) {
+ prev_selected_item = selected_item;
+ page_scroll = 0.0f;
+ }
clamp_selection();
clamp_selected_item_to_body_count = 1;
//item_background_target_pos_y = body_pos.y;