fix mouse wheel step which is restored by merging listbox-model

This commit is contained in:
Jinhao 2016-07-07 07:09:40 +08:00
parent ce81495bf3
commit 5340c4f670

View File

@ -2556,10 +2556,13 @@ namespace nana
return false; return false;
index_pair target; index_pair target;
if(upwards == false) if (upwards == false)
lister.forward(scroll.offset_y_dpl, 1, target); {
if (!lister.forward(scroll.offset_y_dpl, this->scheme_ptr->mouse_wheel.lines, target))
return false;
}
else else
lister.backward(scroll.offset_y_dpl, 1, target); lister.backward(scroll.offset_y_dpl, this->scheme_ptr->mouse_wheel.lines, target);
if (target == scroll.offset_y_dpl) if (target == scroll.offset_y_dpl)
return false; return false;