mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-15 17:46:55 +00:00
Fixed #313. Fix Volume scroll working the opposite way it should in Firefox. Fix typo in setting description.
This commit is contained in:
parent
6da5d4c8b5
commit
ab8904a626
4 changed files with 9 additions and 3 deletions
|
@ -57,7 +57,7 @@ export default class Chat extends Module {
|
|||
ui: {
|
||||
path: 'Chat > Behavior >> General',
|
||||
title: 'Scrollback Length',
|
||||
description: 'Keep up to this many lines in chat. Setting this too high will create lage.',
|
||||
description: 'Keep up to this many lines in chat. Setting this too high will create lag.',
|
||||
component: 'setting-text-box',
|
||||
process(val) {
|
||||
val = parseInt(val, 10);
|
||||
|
|
|
@ -250,7 +250,7 @@ export default class ChatHook extends Module {
|
|||
this.css_tweaks.setVariable('chat-font-family', font);
|
||||
this.css_tweaks.setVariable('chat-width', `${width}px`);
|
||||
|
||||
this.css_tweaks.toggle('chat-font', size === 12 && ! font);
|
||||
this.css_tweaks.toggle('chat-font', size !== 12 || font);
|
||||
this.css_tweaks.toggle('chat-width', width !== 340);
|
||||
}
|
||||
|
||||
|
|
|
@ -163,7 +163,7 @@ export default class Player extends Module {
|
|||
|
||||
} else if ( enabled && ! inst._ffz_scroll_handler ) {
|
||||
inst.playerRef.addEventListener('wheel', inst._ffz_scroll_handler = e => {
|
||||
const delta = e.wheelDelta || e.deltaY || -e.detail,
|
||||
const delta = e.wheelDelta || -(e.deltaY || e.detail || 0),
|
||||
player = inst.player;
|
||||
|
||||
if ( player ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue