Commit 5b809fd6 authored by Zoltan Nagy's avatar Zoltan Nagy Committed by Alexandre Julliard

Move caret when selecting a text area with the mouse.

parent 9fee50e2
......@@ -4415,6 +4415,7 @@ static LRESULT EDIT_WM_MouseMove(HWND hwnd, EDITSTATE *es, INT x, INT y)
es->region_posy = (prey < y) ? -1 : ((prey > y) ? 1 : 0);
e = EDIT_CharFromPos(hwnd, es, x, y, &after_wrap);
EDIT_EM_SetSel(hwnd, es, es->selection_start, e, after_wrap);
EDIT_SetCaretPos(hwnd,es,es->selection_end,es->flags & EF_AFTER_WRAP);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment