Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2016-07-23 19:16:28 +0200
committerStijn Buys <ingar@osirion.org>2016-07-23 19:16:28 +0200
commitb6e20e04b519e50909331f537df2ea6114a137ee (patch)
treeaf49c890160dd5b96b992ff9e95bc44830955c3a /src/ui/slider.cc
parent0d3a65aad03d9ac726238b21ba8224e9558a8a08 (diff)
General ui code improvements, moved layout related variables to ui::UI,
added ColorPicker widget.
Diffstat (limited to 'src/ui/slider.cc')
-rw-r--r--src/ui/slider.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/slider.cc b/src/ui/slider.cc
index ee29f05..1fcaada 100644
--- a/src/ui/slider.cc
+++ b/src/ui/slider.cc
@@ -135,10 +135,11 @@ bool Slider::on_mousepress(const unsigned int button)
{
if (button == SDL_BUTTON_LEFT)
{
+ set_focus();
if (slider_maximum > slider_minimum)
{
// TODO position hit test
- slider_dragging = true;
+ slider_dragging = true;
}
return true;
}