sliden verbessert
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user