1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-06 22:30:57 +00:00
* Fixed: Clicking on Twitch emotes to open an information card about the emote not working for emotes at 50% or further down the screen height.
* Fixed: Improve support for the Twitch WYSIWYG chat input experiment.
This commit is contained in:
SirStendec 2021-12-16 15:00:14 -05:00
parent cc649252db
commit 425276ed08
4 changed files with 99 additions and 13 deletions

View file

@ -498,6 +498,8 @@ export default class Emotes extends Module {
if ( ! line || ! opener )
return;
const rect = target.getBoundingClientRect();
opener.onShowEmoteCard({
channelID: line.props.channelID || '',
channelLogin: line.props.channelLogin || '',
@ -505,7 +507,8 @@ export default class Emotes extends Module {
emoteCode: target.alt,
sourceID: 'chat',
referrerID: '',
initialTopOffset: target.getBoundingClientRect().bottom
initialTopOffset: rect.bottom,
initialBottomOffset: rect.top
});
return true;