From 819f5f30017f78d4f52dfce8173d665682cfbf0c Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Fri, 11 Dec 2020 12:56:23 -0600 Subject: [PATCH] Windows: prevent PiP avatar from being dragged --- stylesheets/_modules.scss | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/stylesheets/_modules.scss b/stylesheets/_modules.scss index 8bb3dd9e5..1001605fd 100644 --- a/stylesheets/_modules.scss +++ b/stylesheets/_modules.scss @@ -6597,6 +6597,12 @@ button.module-image__border-overlay:focus { .module-ongoing-call__group-call-remote-participant--audio-muted::after { display: none; } + + // The avatar image can be dragged on Windows. + .module-avatar img { + -webkit-user-drag: none; + -webkit-user-select: none; + } } &--local { @@ -6607,11 +6613,6 @@ button.module-image__border-overlay:focus { transform: rotateY(180deg); width: 32px; } - - &--avatar img { - -webkit-user-drag: none; - -webkit-user-select: none; - } } &__actions {