If you are editing a form, press F12 to go to the editor.
Lazarus has a "jump history". But it doesn't include the last place before un-focus. Neither does it save the caret when you enter by mouse => so it doesn't help you.
It works if you use code navigation => e.g CTRL-LEFT-Click on the name of a procedure => which takes you to the declaration of the procedure.
The history is by default ctrl-h (though you can change that) or the 4th/5th mouse button. In the "View" menu is a window showing you all history locations.
About clicking the scrollbar. In "Options" Editor/General, is a checkbox: "Always visible cusror". UN-check it.
Then if you scroll, the cursor stays in the text, the cursor scrolls out of the window, and if you hit, the left/right key => it will scroll back.
You can click the editor with the SHIFT key: This will move the caret, but it will start a selection, from where the caret had been.
So you do see where the caret was before.
If you do have, but not not need the middle mouse key (which does paste the current selection, you can set the middle button to do nothing, and use it for selection.
It is also possible to set the left mouse do *never* do anything, but I guess once focused you need it to work....