Skip to content

Commit

Permalink
Remove dedicated function to revert tooltip style
Browse files Browse the repository at this point in the history
The verification of the component tree should be refactored though.
See #58.
  • Loading branch information
phloxic committed Dec 9, 2023
1 parent 62ef0e4 commit a6f6474
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/sprite-thumbnails.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ const spriteThumbs = (player, plugin, options) => {
const tooltipEl = mouseTimeTooltip && mouseTimeTooltip.el();
const tooltipStyleOrig = tooltipEl && tooltipEl.style;

const resetMouseTooltip = () => {
if (tooltipEl && tooltipStyleOrig) {
tooltipEl.style = tooltipStyleOrig;
}
};

const hijackMouseTooltip = evt => {
const seekBarEl = seekBar.el();
const playerWidth = player.currentWidth();
Expand Down Expand Up @@ -146,7 +140,7 @@ const spriteThumbs = (player, plugin, options) => {
debug('resetting');
}
progress.off(spriteEvents, hijackMouseTooltip);
resetMouseTooltip();
tooltipEl.style = tooltipStyleOrig;
}
});

Expand Down

0 comments on commit a6f6474

Please sign in to comment.