I finally managed to fix pulling across map borders. You still aren't moving your target... But at least you are not longer getting stuck.
I still had a host of small bugs to fix today, this being one of them:
Fortunately, I managed to get most of the bugs fixed. The last remaining glitch is causing you to be unable to enter "pulling mode"... But it's so difficult to replicate that I can safely leave it alone for right now.
I also redesigned part of the movement system.
Previously, the UI was using polling to issue move and change direction commands to the logic layer. This code really did not need to be running at 60Hz.
I redesigned the code to issue those two commands based on different events. For example, the move command will now be issued when the "I want to move" event is raised, among others.