Select on mousedown
parent
922e9a5c51
commit
5af495c433
|
@ -1,5 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<router-link
|
<router-link
|
||||||
|
draggable="false"
|
||||||
class="folder fill-block"
|
class="folder fill-block"
|
||||||
:class="{
|
:class="{
|
||||||
hasPreview: previewFileInfos.length > 0,
|
hasPreview: previewFileInfos.length > 0,
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="img-outer fill-block"
|
class="img-outer fill-block"
|
||||||
@click="emitClick"
|
|
||||||
@contextmenu="contextmenu"
|
@contextmenu="contextmenu"
|
||||||
|
@mousedown.passive="emitClick"
|
||||||
@touchstart.passive="touchstart"
|
@touchstart.passive="touchstart"
|
||||||
@touchmove.passive="touchend"
|
@touchmove.passive="touchend"
|
||||||
@touchend.passive="touchend"
|
@touchend.passive="touchend"
|
||||||
|
@ -30,6 +30,7 @@
|
||||||
<img
|
<img
|
||||||
ref="img"
|
ref="img"
|
||||||
class="fill-block"
|
class="fill-block"
|
||||||
|
draggable="false"
|
||||||
:src="src"
|
:src="src"
|
||||||
:key="data.fileid"
|
:key="data.fileid"
|
||||||
@load="load"
|
@load="load"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<router-link
|
<router-link
|
||||||
|
draggable="false"
|
||||||
class="tag fill-block"
|
class="tag fill-block"
|
||||||
:class="{
|
:class="{
|
||||||
hasPreview: previews.length > 0,
|
hasPreview: previews.length > 0,
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
<div class="previews fill-block" ref="previews">
|
<div class="previews fill-block" ref="previews">
|
||||||
<div class="img-outer" v-for="info of previews" :key="info.fileid">
|
<div class="img-outer" v-for="info of previews" :key="info.fileid">
|
||||||
<img
|
<img
|
||||||
|
draggable="false"
|
||||||
class="fill-block"
|
class="fill-block"
|
||||||
:class="{ error: info.flag & c.FLAG_LOAD_FAIL }"
|
:class="{ error: info.flag & c.FLAG_LOAD_FAIL }"
|
||||||
:key="'fpreview-' + info.fileid"
|
:key="'fpreview-' + info.fileid"
|
||||||
|
|
Loading…
Reference in New Issue