From 21797788a2638b8ad166a926719f71080fc82d5e Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Thu, 21 Dec 2023 20:23:57 -0800 Subject: [PATCH] Disable cursor events on images (interferes with drag/drop) --- public/static/css/chat.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/static/css/chat.css b/public/static/css/chat.css index 4172c2c..6885abc 100644 --- a/public/static/css/chat.css +++ b/public/static/css/chat.css @@ -6,6 +6,12 @@ body { min-height: 100vh; } +/* No dragging images - it plays wrongly with the drag/drop image sharing feature + and users can accidentally share in chat by dragging an on-page image */ +img { + pointer-events: none; +} + .float-right { float: right; }