1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-26 04:28:31 +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:
SirStendec 2017-11-17 17:31:21 -05:00
parent 6da5d4c8b5
commit ab8904a626
4 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
<div class="list-header">4.0.0-beta1.3<span>@f93396a7a97f1a01b284</span> <time datetime="2017-11-17">(2017-11-17)</time></div>
<ul class="chat-menu-content menu-side-padding">
<li>Fixed: Chat Font Size and Family settings not being applied.</li>
<li>Fixed: Scroll to Change Volume being reversed on Firefox.</li>
</ul>
<div class="list-header">4.0.0-beta1.3<span>@e82e3deb4ad3e3f1b253</span> <time datetime="2017-11-17">(2017-11-17)</time></div> <div class="list-header">4.0.0-beta1.3<span>@e82e3deb4ad3e3f1b253</span> <time datetime="2017-11-17">(2017-11-17)</time></div>
<ul class="chat-menu-content menu-side-padding"> <ul class="chat-menu-content menu-side-padding">
<li>Added: Chat > Behavior > General > Scrollback Length</li> <li>Added: Chat > Behavior > General > Scrollback Length</li>

View file

@ -57,7 +57,7 @@ export default class Chat extends Module {
ui: { ui: {
path: 'Chat > Behavior >> General', path: 'Chat > Behavior >> General',
title: 'Scrollback Length', 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', component: 'setting-text-box',
process(val) { process(val) {
val = parseInt(val, 10); val = parseInt(val, 10);

View file

@ -250,7 +250,7 @@ export default class ChatHook extends Module {
this.css_tweaks.setVariable('chat-font-family', font); this.css_tweaks.setVariable('chat-font-family', font);
this.css_tweaks.setVariable('chat-width', `${width}px`); 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); this.css_tweaks.toggle('chat-width', width !== 340);
} }

View file

@ -163,7 +163,7 @@ export default class Player extends Module {
} else if ( enabled && ! inst._ffz_scroll_handler ) { } else if ( enabled && ! inst._ffz_scroll_handler ) {
inst.playerRef.addEventListener('wheel', inst._ffz_scroll_handler = e => { 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; player = inst.player;
if ( player ) { if ( player ) {