diff --git a/UI/InputElement/Helpers/DirectionInput.svelte b/UI/InputElement/Helpers/DirectionInput.svelte index a2ed318c2..6158bf7e1 100644 --- a/UI/InputElement/Helpers/DirectionInput.svelte +++ b/UI/InputElement/Helpers/DirectionInput.svelte @@ -50,12 +50,13 @@ on:mousemove={(e) => { if (isDown) { onPosChange(e.clientX, e.clientY) + e.preventDefault() } }} on:mouseup={() => { isDown = false }} - on:touchmove={(e) => onPosChange(e.touches[0].clientX, e.touches[0].clientY)} + on:touchmove={(e) =>{ onPosChange(e.touches[0].clientX, e.touches[0].clientY); e.preventDefault() }} on:touchstart={(e) => onPosChange(e.touches[0].clientX, e.touches[0].clientY)} >