fix mouse wheel step which is restored by merging listbox-model
This commit is contained in:
parent
ce81495bf3
commit
5340c4f670
@ -2557,9 +2557,12 @@ namespace nana
|
||||
|
||||
index_pair target;
|
||||
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
|
||||
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)
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user