diff --git a/assets/js/theme/blocks/blocksWithGrab.js b/assets/js/theme/blocks/blocksWithGrab.js index fc0f094a4fbcdddad2a4610e0a37a15c9d0ebd33..143f36291d902487a5a393c9b1a88b5e7f362dcd 100644 --- a/assets/js/theme/blocks/blocksWithGrab.js +++ b/assets/js/theme/blocks/blocksWithGrab.js @@ -72,10 +72,6 @@ class BlockWithGrab { this.block.addEventListener('pointerdown', (event) => { this.content.classList.add('is-grabbing'); - this.items.forEach((item) => { - item.style.pointerEvents = "none"; - }); - startX = event.clientX; isPointerDown = true; }); @@ -83,6 +79,12 @@ class BlockWithGrab { this.block.addEventListener('pointermove', (event) => { this.isManipulated = isPointerDown; endX = event.clientX; + + if (this.isManipulated) { + this.items.forEach((item) => { + item.style.pointerEvents = "none"; + }); + } }); endEvents.forEach(event => {