scroll-bar: Remove jitter on the scroll bar when moving the mouse
This was due to incorrect pixel clamping, which bounced the height of the actor between values. Just remove pixel clamping, as Clutter will correctly do it for us. https://bugzilla.gnome.org/show_bug.cgi?id=689243
This commit is contained in:
@ -270,12 +270,6 @@ scroll_bar_allocate_children (StScrollBar *bar,
|
|||||||
handle_box.y2 = content_box.y2;
|
handle_box.y2 = content_box.y2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* snap to pixel */
|
|
||||||
handle_box.x1 = (int) handle_box.x1;
|
|
||||||
handle_box.y1 = (int) handle_box.y1;
|
|
||||||
handle_box.x2 = (int) handle_box.x2;
|
|
||||||
handle_box.y2 = (int) handle_box.y2;
|
|
||||||
|
|
||||||
clutter_actor_allocate (priv->handle,
|
clutter_actor_allocate (priv->handle,
|
||||||
&handle_box,
|
&handle_box,
|
||||||
flags);
|
flags);
|
||||||
|
Reference in New Issue
Block a user