1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-27 13:08:30 +00:00

4.0.0-rc21.4

* Fixed: Scrolling issue with the FFZ Control Center when using certain controls.
* Fixed: Visibility checkboxes in the In-Line Chat Actions editor not working correctly when multiple actions are in edit mode.
This commit is contained in:
SirStendec 2019-05-16 20:24:34 -04:00
parent 00d82c697f
commit 93f044a0e9
4 changed files with 30 additions and 9 deletions

View file

@ -1,10 +1,12 @@
<template lang="html">
<div
ref="scroller"
:class="classes"
:data-simplebar-auto-hide="autoHide"
:data-simplebar-scrollbar-min-size="scrollbarMinSize"
data-simplebar
class="scrollable-area"
@scroll="onScroll"
>
<div class="simplebar-scroll-content">
<div class="simplebar-content">
@ -27,6 +29,18 @@ export default {
type: Number,
default: 10
}
},
methods: {
onScroll() {
// We do this to avoid the scroll position getting screwed up on
// an element that should never scroll. Thanks, web browsers.
const scroller = this.$refs.scroller;
if ( ! scroller || scroller.scrollTop == 0 )
return;
scroller.scrollTop = 0;
}
}
}