set @mouseIsDown no matter where the event fires

This is a "cherry-picking" of sorts of @csillag's commit at
7cfc5fab8f4375447b278216d4317c0821b84ee5.