+#include <msp/core/raii.h>
#include <msp/debug/demangle.h>
#include <msp/gl/matrix.h>
#include <msp/gl/meshbuilder.h>
first = 0;
max_scroll = 0;
view_size = 5;
+ ignore_slider_change = false;
observer = new DataObserver(*this);
reposition_child(slider, part);
else if(part.get_name()=="items")
{
+ SetFlag flag(ignore_slider_change);
+ check_view_range();
+
const Sides &margin = part.get_margin();
unsigned w = geom.w-min(geom.w, margin.left+margin.right);
unsigned y = geom.h-min(geom.h, margin.top);
}
}
}
-
- check_view_range();
}
Widget::rebuild_special(part);
void List::slider_value_changed(double value)
{
- if(max_scroll>0)
+ if(max_scroll>0 && !ignore_slider_change)
{
first = max_scroll-static_cast<unsigned>(value);
rebuild();