1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

guiScrollBar: move directly to clicked pos if clicked into tray

This commit is contained in:
DS-Minetest 2019-07-25 15:16:49 +02:00 committed by sfan5
parent 8efa1de835
commit 705630e7d0
2 changed files with 22 additions and 41 deletions

View file

@ -26,7 +26,6 @@ public:
virtual void draw();
virtual void updateAbsolutePosition();
virtual bool OnEvent(const SEvent &event);
virtual void OnPostRender(u32 timeMs);
s32 getMax() const { return max_pos; }
s32 getMin() const { return min_pos; }
@ -60,7 +59,6 @@ private:
s32 max_pos;
s32 small_step;
s32 large_step;
s32 desired_pos;
u32 last_change;
s32 drag_offset;
s32 page_size;
@ -68,4 +66,4 @@ private:
core::rect<s32> slider_rect;
video::SColor current_icon_color;
};
};