--- a/exo/exo-icon-view.c +++ b/exo/exo-icon-view.c @@ -4604,11 +4604,11 @@ icon_view->priv->hadjustment->value + x + item->area.x - focus_width); } else if (x + item->area.x + item->area.width + focus_width > GTK_WIDGET (icon_view)->allocation.width - && item->area.width < GTK_WIDGET (icon_view)->allocation.width) + && x + item->area.x - focus_width > 0) { - /* the second condition above is to make sure that we don't scroll horizontally if the item - * width is larger than the allocation width. Fixes a weird scrolling bug in the compact view. - * See http://bugzilla.xfce.org/show_bug.cgi?id=1683 for details. + /* the second condition above is to make sure that we don't scroll + * horizontally if the item is already as visible as possible. + * It only affects items that are wider than the allocation width. */ gtk_adjustment_set_value (icon_view->priv->hadjustment,