fix mouse wheel step which is restored by merging listbox-model
This commit is contained in:
parent
ce81495bf3
commit
5340c4f670
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user