diff --git a/src/components/Torrent/Torrent.vue b/src/components/Torrent/Torrent.vue index 231f0289..9a8c807b 100644 --- a/src/components/Torrent/Torrent.vue +++ b/src/components/Torrent/Torrent.vue @@ -3,7 +3,7 @@ flat class="pointer noselect" :class="{ selected: isSelected}" - @click.native.prevent="selectMode && selectTorrent(torrent.hash)" + @click.native.exact.prevent="selectMode && selectTorrent(torrent.hash)" @dblclick.prevent="showInfo(torrent.hash)" @click.ctrl.exact.prevent="selectTorrent(torrent.hash)" @click.shift.exact.prevent="selectUntil(torrent.hash, index)" @@ -27,7 +27,8 @@ export default { }, mixins: [General, TorrentSelect], props: { - torrent: Object + torrent: Object, + index: Number }, computed: { ...mapState(['selected_torrents', 'selectMode']), @@ -41,4 +42,4 @@ export default { } } } - \ No newline at end of file + diff --git a/src/mixins/TorrentSelect.js b/src/mixins/TorrentSelect.js index 340c921b..641a066e 100644 --- a/src/mixins/TorrentSelect.js +++ b/src/mixins/TorrentSelect.js @@ -4,7 +4,7 @@ export default { return this.$store.getters.containsTorrent(hash) }, selectTorrent(hash) { - if (!this.$store.state.selectMode) return + if (!this.$store.state.selectMode) this.$store.state.selectMode = true if (this.isAlreadySelected(hash)) { this.$store.commit('SET_SELECTED', { type: 'remove', hash }) } else { diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index e41380dd..65418412 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -128,7 +128,7 @@ - + \ No newline at end of file +