Select on mousedown
parent
922e9a5c51
commit
5af495c433
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<router-link
|
||||
draggable="false"
|
||||
class="folder fill-block"
|
||||
:class="{
|
||||
hasPreview: previewFileInfos.length > 0,
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue