mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-06 15:52:17 +02:00
Remove unnecessary resize handler
This commit is contained in:
parent
32776f0642
commit
f45f9a83ee
|
@ -5,12 +5,6 @@ const debounce = require("lodash/debounce");
|
|||
const Mousetrap = require("mousetrap");
|
||||
const templates = require("../views");
|
||||
|
||||
const {togglePreviewMoreButtonsIfNeeded} = require("./utils");
|
||||
|
||||
// On resize, previews in the current channel that are expanded need to compute
|
||||
// their "More" button. Debounced handler to avoid performance cost.
|
||||
$(window).on("resize", debounce(togglePreviewMoreButtonsIfNeeded, 150));
|
||||
|
||||
/* Image viewer */
|
||||
|
||||
const imageViewer = $("#image-viewer");
|
||||
|
|
Loading…
Reference in a new issue