From 1f1614704ee2ec2cb5c6b5134b93b5b18aa8089f Mon Sep 17 00:00:00 2001 From: ClemDee Date: Tue, 6 Aug 2019 10:10:56 +0200 Subject: [PATCH] Fix visual issue when dragging an image only the image is ghost --- www/drive/inner.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/drive/inner.js b/www/drive/inner.js index a6f669d2e..5856fbe54 100644 --- a/www/drive/inner.js +++ b/www/drive/inner.js @@ -1719,6 +1719,7 @@ define([ $element.find('.cp-icon').addClass('cp-app-drive-element-list'); $element.prepend(img); $(img).addClass('cp-app-drive-element-grid cp-app-drive-element-thumbnail'); + $(img).attr("draggable", false); } else { common.displayThumbnail(href || data.roHref, data.channel, data.password, $element, function ($thumb) { @@ -1726,6 +1727,7 @@ define([ // Remove the .hide() added by displayThumnail() because it hides the icon in list mode too $element.find('.cp-icon').removeAttr('style').addClass('cp-app-drive-element-list'); $thumb.addClass('cp-app-drive-element-grid cp-app-drive-element-thumbnail'); + $thumb.attr("draggable", false); thumbsUrls[element] = $thumb[0].src; }); }