Skip to content

Commit

Permalink
fix(client): Better wheel handling
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Jul 17, 2020
1 parent e18caa3 commit eb275a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/deck.vue
@@ -1,5 +1,5 @@
<template>
<div class="mk-deck" :class="`${$store.state.device.deckColumnAlign}`" v-hotkey.global="keymap" @wheel="onWheel">
<div class="mk-deck" :class="`${$store.state.device.deckColumnAlign}`" v-hotkey.global="keymap">
<x-sidebar ref="nav"/>

<!-- TODO: deckMainColumnPlace を見て位置変える -->
Expand Down Expand Up @@ -110,6 +110,7 @@ export default Vue.extend({
created() {
document.documentElement.style.overflowY = 'hidden';
document.documentElement.style.scrollBehavior = 'auto';
window.addEventListener('wheel', this.onWheel);
if (this.$store.getters.isSignedIn) {
this.connection = this.$root.stream.useSharedConnection('main');
Expand Down

0 comments on commit eb275a6

Please sign in to comment.