Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions data/darktableconfig.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -2467,6 +2467,13 @@
<shortdescription>show scrollbars for central view</shortdescription>
<longdescription>defines whether scrollbars should be displayed</longdescription>
</dtconfig>
<dtconfig>
<name>filmstrip/ui/auto_scroll</name>
<type>bool</type>
<default>true</default>
<shortdescription>auto-scroll filmstrip to selected image</shortdescription>
<longdescription>when enabled, the filmstrip automatically scrolls to center the newly selected image</longdescription>
</dtconfig>
<dtconfig prefs="lighttable" section="general">
<name>lighttable/ui/milliseconds</name>
<type>bool</type>
Expand Down
3 changes: 3 additions & 0 deletions src/dtgtk/thumbtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -1848,6 +1848,9 @@ static void _dt_active_images_callback(gpointer instance, dt_thumbtable_t *table
return;

if(!darktable.view_manager->active_images) return;
if(table->mode == DT_THUMBTABLE_MODE_FILMSTRIP
&& !dt_conf_get_bool("filmstrip/ui/auto_scroll"))
return;
const int activeid = GPOINTER_TO_INT(darktable.view_manager->active_images->data);
dt_thumbtable_set_offset_image(table, activeid, TRUE);
}
Expand Down
3 changes: 2 additions & 1 deletion src/views/darkroom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,8 @@ static void _view_darkroom_filmstrip_activate_callback(gpointer instance,

_dev_change_image(dev, imgid);
// move filmstrip
dt_thumbtable_set_offset_image(dt_ui_thumbtable(darktable.gui->ui), imgid, TRUE);
if(dt_conf_get_bool("filmstrip/ui/auto_scroll"))
dt_thumbtable_set_offset_image(dt_ui_thumbtable(darktable.gui->ui), imgid, TRUE);
// force redraw
dt_control_queue_redraw();
}
Expand Down
Loading