Skip to content

Commit

Permalink
Describe the reason
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed May 24, 2024
1 parent 8f04a16 commit c3eeb5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webextensions/common/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,8 @@ export function watchOverflowStateChange({ target, moreResizeTargets, onOverflow
*/
};

// Legacy method for Firefox 127 or older.
// See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1888737
const onOverflowEvent = event => {
if (!useLegacyOverflowEvents) {
useLegacyOverflowEvents = true;
Expand All @@ -1076,7 +1078,6 @@ export function watchOverflowStateChange({ target, moreResizeTargets, onOverflow
else
onUnderflow();
};

target.addEventListener('overflow', onOverflowEvent);
target.addEventListener('underflow', onOverflowEvent);

Expand Down

0 comments on commit c3eeb5d

Please sign in to comment.