fix issue that listbox scheme mouse_wheel.lines has no effect

This commit is contained in:
Jinhao
2017-11-01 11:57:52 +08:00
parent e5dc98bf4e
commit 0796c1540b
3 changed files with 11 additions and 8 deletions

View File

@@ -3931,6 +3931,11 @@ namespace nana
essence_->content_view.reset(new widgets::skeletons::content_view{ widget.handle() });
essence_->resize_disp_area();
//Set the content_view wheel speed with the listbox scheme.
essence_->content_view->set_wheel_speed([this] {
return essence_->scheme_ptr->mouse_wheel.lines;
});
essence_->content_view->events().hover_outside = [this](const point& cur_pos) {
essence_->update_mouse_selection(cur_pos);
};