Skip to content
Snippets Groups Projects
Commit dc0e2a6a authored by Olivia206's avatar Olivia206
Browse files

fix

parent 82b3acd4
No related branches found
No related tags found
No related merge requests found
......@@ -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";
});
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment