Use mousedown instead of click for backdrop click detection; fixes #13816