![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include <gtk/gtk.h>Go to the source code of this file.
Functions | |
| G_BEGIN_DECLS void | dt_ui_scroll_latch (GtkWidget *scrolled_window) |
Keep the mouse wheel on scrolled_window once it has started scrolling. | |
Keep the mouse wheel on scrolled_window once it has started scrolling.
GTK gives each wheel step to the deepest widget under the pointer. While a scrolled window scrolls, its content moves under a still pointer, and the first child that takes the wheel (a graph, a list, a focused slider) stops the scroll and takes the steps that follow. Once scrolled_window has taken a step, every step over its content goes to it, until the wheel rests or the pointer moves.
| scrolled_window | a GtkScrolledWindow that already has its child: the latch is held on that child. |
Definition at line 129 of file scroll_latch.c.
References _latch_free(), _pointer_moved(), _step(), _step_end(), _window_moved(), _window_step(), DT_SCROLL_LATCH_KEY, dt_scroll_latch_t::motion, dt_scroll_latch_t::scrolled_window, and dt_scroll_latch_t::steps.
Referenced by _ui_init_panel_container_center().