Tomaž Vajngerl committed a patch related to this issue. It has been pushed to "libreoffice-5-3": http://cgit.freedesktop.org/libreoffice/online/commit/?id=dd3b68e0f6c66d3091ec13546274fbb72f9c5bce&h=libreoffice-5-3 tdf#106595 don't scroll to the cursor position after focus lose/get