mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 09:03:09 +02:00
fix(client): Better wheel handling
This commit is contained in:
parent
e18caa3396
commit
eb275a62a6
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<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"/>
|
<x-sidebar ref="nav"/>
|
||||||
|
|
||||||
<!-- TODO: deckMainColumnPlace を見て位置変える -->
|
<!-- TODO: deckMainColumnPlace を見て位置変える -->
|
||||||
|
@ -110,6 +110,7 @@ export default Vue.extend({
|
||||||
created() {
|
created() {
|
||||||
document.documentElement.style.overflowY = 'hidden';
|
document.documentElement.style.overflowY = 'hidden';
|
||||||
document.documentElement.style.scrollBehavior = 'auto';
|
document.documentElement.style.scrollBehavior = 'auto';
|
||||||
|
window.addEventListener('wheel', this.onWheel);
|
||||||
|
|
||||||
if (this.$store.getters.isSignedIn) {
|
if (this.$store.getters.isSignedIn) {
|
||||||
this.connection = this.$root.stream.useSharedConnection('main');
|
this.connection = this.$root.stream.useSharedConnection('main');
|
||||||
|
|
Loading…
Reference in a new issue