Moving close to a wall could sometimes end up with the foreground filling the screen and intercepting the mouse action. See attached screenshot.
Same issue as this closed thread: Stuck on map due to landscape
What were you doing at the time? Exploring the Temple of Eterra
How consistently does this happen? 100%