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