Turns out AutoHotKey is innocent, the culprit was the mouse I was using (Logitech M650)
It appears to send the XButton1 up/down command at once on release.
Switching to a different mouse fixed the issue and AHK works as expected.