From dc0e2a6a20474ca64d223a5ef29c1b425c4ea139 Mon Sep 17 00:00:00 2001
From: Olivia206 <olivia.simonet206@gmail.com>
Date: Fri, 23 Feb 2024 17:02:38 +0100
Subject: [PATCH] fix

---
 assets/js/theme/blocks/draggableBlocks.js | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/assets/js/theme/blocks/draggableBlocks.js b/assets/js/theme/blocks/draggableBlocks.js
index 8b1c9de8..5c852f00 100644
--- a/assets/js/theme/blocks/draggableBlocks.js
+++ b/assets/js/theme/blocks/draggableBlocks.js
@@ -77,20 +77,18 @@ class DraggableBlock {
             if (!this.clicOnBtn) {
                 this.content.classList.add('is-grabbing');
                 isPointerDown = true;
+                console.log(isPointerDown)
             }
             startX = event.clientX;
         });
 
         this.block.addEventListener('pointermove', (event) => {
-            if (!this.clicOnBtn) {
-                this.isManipulated = isPointerDown;
-                endX = event.clientX;
-    
-                if (this.isManipulated) {
-                    this.items.forEach((item) => {
-                        item.style.pointerEvents = "none";
-                    });
-                }
+            this.isManipulated = isPointerDown;
+            endX = event.clientX;
+            if (this.isManipulated) {
+                this.items.forEach((item) => {
+                    item.style.pointerEvents = "none";
+                });
             }
         });
     
-- 
GitLab