sliden verbessert

This commit is contained in:
ben8
2026-02-07 11:14:43 +01:00
parent 7e22e818ef
commit 543ae87a14

View File

@@ -645,14 +645,26 @@
{% if quiz.user_id == request.user %} {% if quiz.user_id == request.user %}
<style>.sortable-drag {
position: fixed !important;
z-index: 99999 !important;
pointer-events: none;
}
</style>
<script> <script>
Sortable.create(document.getElementById('questions-list'), { Sortable.create(document.getElementById('questions-list'), {
animation: 300, animation: 300,
swapThreshold: 0.65, swapThreshold: 0.5,
delay: 100, // wie lange gedrückt halten in ms
delayOnTouchOnly: true, // nur auf Touch-Geräten anwenden delay: 100,
touchStartThreshold: 5, delayOnTouchOnly: true,
touchStartThreshold: 6,
forceFallback: true,
fallbackTolerance: 6,
fallbackOnBody: true,
onStart: () => { onStart: () => {
if (navigator.vibrate) { if (navigator.vibrate) {