[test] no forceapply
This commit is contained in:
@@ -311,7 +311,7 @@
|
|||||||
if(da.type === "risuDrag"){
|
if(da.type === "risuDrag"){
|
||||||
inserter(da.index,{index:0})
|
inserter(da.index,{index:0})
|
||||||
}
|
}
|
||||||
}} on:dragenter|preventDefault />
|
}} on:dragenter={preventAll} />
|
||||||
{#if menuMode === 0}
|
{#if menuMode === 0}
|
||||||
{#each charImages as char, ind}
|
{#each charImages as char, ind}
|
||||||
<div class="group relative flex items-center px-2"
|
<div class="group relative flex items-center px-2"
|
||||||
@@ -319,7 +319,7 @@
|
|||||||
on:dragstart={(e) => {avatarDragStart({index:ind}, e)}}
|
on:dragstart={(e) => {avatarDragStart({index:ind}, e)}}
|
||||||
on:dragover={avatarDragOver}
|
on:dragover={avatarDragOver}
|
||||||
on:drop={(e) => {avatarDrop({index:ind}, e)}}
|
on:drop={(e) => {avatarDrop({index:ind}, e)}}
|
||||||
on:dragenter|preventDefault
|
on:dragenter={preventAll}
|
||||||
on:contextmenu={preventAll}
|
on:contextmenu={preventAll}
|
||||||
>
|
>
|
||||||
<SidebarIndicator
|
<SidebarIndicator
|
||||||
@@ -381,14 +381,14 @@
|
|||||||
if(da.type === "risuDrag", char.type === 'folder'){
|
if(da.type === "risuDrag", char.type === 'folder'){
|
||||||
inserter(da.index,{index:0,folder:char.id})
|
inserter(da.index,{index:0,folder:char.id})
|
||||||
}
|
}
|
||||||
}} on:dragenter|preventDefault/>
|
}} on:dragenter={preventAll}/>
|
||||||
{#each char.folder as char2, ind}
|
{#each char.folder as char2, ind}
|
||||||
<div class="group relative flex items-center px-2 z-10"
|
<div class="group relative flex items-center px-2 z-10"
|
||||||
draggable="true"
|
draggable="true"
|
||||||
on:dragstart={(e) => {if(char.type === 'folder'){avatarDragStart({index: ind, folder:char.id}, e)}}}
|
on:dragstart={(e) => {if(char.type === 'folder'){avatarDragStart({index: ind, folder:char.id}, e)}}}
|
||||||
on:dragover={avatarDragOver}
|
on:dragover={avatarDragOver}
|
||||||
on:drop={(e) => {if(char.type === 'folder'){avatarDrop({index: ind, folder:char.id}, e)}}}
|
on:drop={(e) => {if(char.type === 'folder'){avatarDrop({index: ind, folder:char.id}, e)}}}
|
||||||
on:dragenter|preventDefault
|
on:dragenter={preventAll}
|
||||||
on:contextmenu={preventAll}
|
on:contextmenu={preventAll}
|
||||||
>
|
>
|
||||||
<SidebarIndicator
|
<SidebarIndicator
|
||||||
@@ -426,7 +426,7 @@
|
|||||||
if(da.type === "risuDrag" && char.type === 'folder'){
|
if(da.type === "risuDrag" && char.type === 'folder'){
|
||||||
inserter(da.index,{index:ind+1,folder:char.id})
|
inserter(da.index,{index:ind+1,folder:char.id})
|
||||||
}
|
}
|
||||||
}} on:dragenter|preventDefault/>
|
}} on:dragenter={preventAll}/>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
@@ -442,7 +442,7 @@
|
|||||||
if(da.type === "risuDrag"){
|
if(da.type === "risuDrag"){
|
||||||
inserter(da.index,{index:ind+1})
|
inserter(da.index,{index:ind+1})
|
||||||
}
|
}
|
||||||
}} on:dragenter|preventDefault />
|
}} on:dragenter={preventAll} />
|
||||||
{/each}
|
{/each}
|
||||||
<div class="flex flex-col items-center space-y-2 px-2">
|
<div class="flex flex-col items-center space-y-2 px-2">
|
||||||
<BaseRoundedButton
|
<BaseRoundedButton
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import {scrollBehaviourDragImageTranslateOverride} from "mobile-drag-drop/scroll
|
|||||||
dragDropPolyfil({
|
dragDropPolyfil({
|
||||||
// use this to make use of the scroll behaviour
|
// use this to make use of the scroll behaviour
|
||||||
dragImageTranslateOverride: scrollBehaviourDragImageTranslateOverride,
|
dragImageTranslateOverride: scrollBehaviourDragImageTranslateOverride,
|
||||||
forceApply: navigator.maxTouchPoints > 0,
|
|
||||||
holdToDrag: 400
|
holdToDrag: 400
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user