Skip to content

Commit

Permalink
fix(UI): tabs or explorebar elements selected with mouse wheel or rig…
Browse files Browse the repository at this point in the history
…ht button
  • Loading branch information
Fabio286 committed Jul 23, 2021
1 parent 425f066 commit a8a47ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/renderer/components/Workspace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class="tab-item tab-draggable"
draggable="true"
:class="{'active': selectedTab === tab.uid}"
@mousedown="selectTab({uid: workspace.uid, tab: tab.uid})"
@mousedown.left="selectTab({uid: workspace.uid, tab: tab.uid})"
@mouseup.middle="closeTab(tab)"
>
<a v-if="tab.type === 'query'" class="tab-link">
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/WorkspaceExploreBarSchema.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
:key="table.name"
class="menu-item"
:class="{'text-bold': breadcrumbs.schema === database.name && [breadcrumbs.table, breadcrumbs.view].includes(table.name)}"
@mousedown="selectTable({schema: database.name, table})"
@mousedown.left="selectTable({schema: database.name, table})"
@dblclick="openDataTab({schema: database.name, table})"
@contextmenu.prevent="showTableContext($event, table)"
>
Expand Down

0 comments on commit a8a47ed

Please sign in to comment.