Index: uspace/lib/ui/src/entry.c
===================================================================
--- uspace/lib/ui/src/entry.c	(revision 1e2421219a484d621f73169375d3874e60c44847)
+++ uspace/lib/ui/src/entry.c	(revision 98a935ebd156845f2511fad291365f6649289e1f)
@@ -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);
