diff --git a/Verification/file-hashes.json b/Verification/file-hashes.json index 2edbe26..9e368a9 100644 --- a/Verification/file-hashes.json +++ b/Verification/file-hashes.json @@ -132,7 +132,7 @@ "issue_tracker\\index.html": "edc1f27b2d6381751ed4d60d7aa53ccc", "javascript\\accessibility.js": "4c3d2f7fe221a2bc26da35c85eb344f4", "javascript\\advanced.js": "288d119cbdc37f0fddc5dc651bab47d8", - "javascript\\custom_elements.js": "3f9f4240329ef539462bdeb8dafdf830", + "javascript\\custom_elements.js": "cb8a4c8178c3494481a289affb286458", "javascript\\editions.js": "795a056b1011d662f3cbd38c41962bee", "javascript\\public_define.js": "13e6cc8c4fbfb0cad4dfce352a92f6e0", "javascript\\public_script.js": "92f0dffd50c059db5fb0378f60cd9168", diff --git a/Verification/project-hash.json b/Verification/project-hash.json index 248906c..a453855 100644 --- a/Verification/project-hash.json +++ b/Verification/project-hash.json @@ -1,3 +1,3 @@ { - "projectHash": "09e9060317e91e40d634476847ae1676" + "projectHash": "dcdae9b1e9439fe8f158ec946daa46f0" } \ No newline at end of file diff --git a/javascript/custom_elements.js b/javascript/custom_elements.js index 02eca0b..262afe8 100644 --- a/javascript/custom_elements.js +++ b/javascript/custom_elements.js @@ -453,6 +453,7 @@ class CustomSwitch extends HTMLElement { const handlePointerUp = (e) => { if (this.isDragging) { + e.preventDefault(); const currentX = e.type === 'mouseup' ? e.clientX : e.changedTouches[0].clientX; const distanceMoved = currentX - this.startX; if (distanceMoved > 10 && !this.isSwitchOn) {