Index: uspace/lib/ui/src/entry.c
===================================================================
--- uspace/lib/ui/src/entry.c	(revision 1e2421219a484d621f73169375d3874e60c44847)
+++ uspace/lib/ui/src/entry.c	(revision ba74416da7e31beedf3c8bb8af0082c49d617c5f)
@@ -1091,5 +1091,5 @@
 	 */
 	if (x > geom.text_rect.p1.x)
-		entry->scroll_pos -= x + 2 - geom.text_rect.p1.x;
+		entry->scroll_pos -= x - geom.text_rect.p1.x;
 
 	width = gfx_text_width(res->font, entry->text);
