[test] no forceapply

This commit is contained in:
kwaroran
2023-05-23 20:15:32 +09:00
parent bf1a886f5d
commit a8ecc53a1e
2 changed files with 6 additions and 7 deletions

View File

@@ -311,7 +311,7 @@
if(da.type === "risuDrag"){
inserter(da.index,{index:0})
}
}} on:dragenter|preventDefault />
}} on:dragenter={preventAll} />
{#if menuMode === 0}
{#each charImages as char, ind}
<div class="group relative flex items-center px-2"
@@ -319,7 +319,7 @@
on:dragstart={(e) => {avatarDragStart({index:ind}, e)}}
on:dragover={avatarDragOver}
on:drop={(e) => {avatarDrop({index:ind}, e)}}
on:dragenter|preventDefault
on:dragenter={preventAll}
on:contextmenu={preventAll}
>
<SidebarIndicator
@@ -381,14 +381,14 @@
if(da.type === "risuDrag", char.type === 'folder'){
inserter(da.index,{index:0,folder:char.id})
}
}} on:dragenter|preventDefault/>
}} on:dragenter={preventAll}/>
{#each char.folder as char2, ind}
<div class="group relative flex items-center px-2 z-10"
draggable="true"
on:dragstart={(e) => {if(char.type === 'folder'){avatarDragStart({index: ind, folder:char.id}, e)}}}
on:dragover={avatarDragOver}
on:drop={(e) => {if(char.type === 'folder'){avatarDrop({index: ind, folder:char.id}, e)}}}
on:dragenter|preventDefault
on:dragenter={preventAll}
on:contextmenu={preventAll}
>
<SidebarIndicator
@@ -426,7 +426,7 @@
if(da.type === "risuDrag" && char.type === 'folder'){
inserter(da.index,{index:ind+1,folder:char.id})
}
}} on:dragenter|preventDefault/>
}} on:dragenter={preventAll}/>
{/each}
</div>
{/if}
@@ -442,7 +442,7 @@
if(da.type === "risuDrag"){
inserter(da.index,{index:ind+1})
}
}} on:dragenter|preventDefault />
}} on:dragenter={preventAll} />
{/each}
<div class="flex flex-col items-center space-y-2 px-2">
<BaseRoundedButton

View File

@@ -11,7 +11,6 @@ import {scrollBehaviourDragImageTranslateOverride} from "mobile-drag-drop/scroll
dragDropPolyfil({
// use this to make use of the scroll behaviour
dragImageTranslateOverride: scrollBehaviourDragImageTranslateOverride,
forceApply: navigator.maxTouchPoints > 0,
holdToDrag: 400
});