Select on mousedown

pull/162/head
Varun Patil 2022-10-31 21:06:43 -07:00
parent 922e9a5c51
commit 5af495c433
3 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
<template>
<router-link
draggable="false"
class="folder fill-block"
:class="{
hasPreview: previewFileInfos.length > 0,

View File

@ -20,8 +20,8 @@
<div
class="img-outer fill-block"
@click="emitClick"
@contextmenu="contextmenu"
@mousedown.passive="emitClick"
@touchstart.passive="touchstart"
@touchmove.passive="touchend"
@touchend.passive="touchend"
@ -30,6 +30,7 @@
<img
ref="img"
class="fill-block"
draggable="false"
:src="src"
:key="data.fileid"
@load="load"

View File

@ -1,5 +1,6 @@
<template>
<router-link
draggable="false"
class="tag fill-block"
:class="{
hasPreview: previews.length > 0,
@ -21,6 +22,7 @@
<div class="previews fill-block" ref="previews">
<div class="img-outer" v-for="info of previews" :key="info.fileid">
<img
draggable="false"
class="fill-block"
:class="{ error: info.flag & c.FLAG_LOAD_FAIL }"
:key="'fpreview-' + info.fileid"