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