fix issue that listbox scheme mouse_wheel.lines has no effect
This commit is contained in:
parent
e5dc98bf4e
commit
0796c1540b
@ -1,12 +1,12 @@
|
||||
/**
|
||||
/*
|
||||
* A Tree Container class implementation
|
||||
* Copyright(C) 2003-2017 Jinhao(cnjinhao@hotmail.com)
|
||||
*
|
||||
* Distributed under the Boost Software License, Version 1.0.
|
||||
* (See accompanying file LICENSE or copy at
|
||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||
* http://www.boost.org/LICENSE_1_0.txt)
|
||||
*
|
||||
* @file nana/gui/widgets/detail/tree_cont.hpp
|
||||
* @file: nana/gui/widgets/detail/tree_cont.hpp
|
||||
*/
|
||||
|
||||
#ifndef NANA_GUI_WIDGETS_DETAIL_TREE_CONT_HPP
|
||||
|
||||
@ -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);
|
||||
};
|
||||
|
||||
@ -1,15 +1,13 @@
|
||||
/**
|
||||
/*
|
||||
* A Treebox Implementation
|
||||
* Nana C++ Library(http://www.nanapro.org)
|
||||
* Copyright(C) 2003-2017 Jinhao(cnjinhao@hotmail.com)
|
||||
*
|
||||
* Distributed under the Boost Software License, Version 1.0.
|
||||
* (See accompanying file LICENSE or copy at
|
||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||
* http://www.boost.org/LICENSE_1_0.txt)
|
||||
*
|
||||
* @file nana/gui/widgets/treebox.cpp
|
||||
* @brief
|
||||
*
|
||||
* @file: nana/gui/widgets/treebox.cpp
|
||||
*/
|
||||
#include <nana/gui/widgets/treebox.hpp>
|
||||
#include <nana/gui/widgets/scroll.hpp>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user