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

See #13816.