mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-06 22:30:57 +00:00
4.31.4
* 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:
parent
cc649252db
commit
425276ed08
4 changed files with 99 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue