Skip to content

Commit

Permalink
-Fixed horizontal slider scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
harryhaaren committed Dec 30, 2014
1 parent 773cad2 commit 08266a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion avtk/slider.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ Slider::Slider( Avtk::UI* ui, int x_, int y_, int w_, int h_, std::string label_
dragMode( DM_DRAG_VERTICAL );

if ( w_ > h_ )
{
dragMode( DM_DRAG_HORIZONTAL );

scrollInvert = true;
}
scrollDisable = false;
}

Expand Down

0 comments on commit 08266a4

Please sign in to comment.