mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
This allows us in the future to use mobileshell without having the WindowUtil singleton loaded (which does a bunch of wayland calls that aren't necessary for most applications).
9 lines
257 B
JavaScript
9 lines
257 B
JavaScript
// SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
/**
|
|
* Applies both the min and max functions to a value.
|
|
*/
|
|
function applyMinMaxRange(min, max, num) {
|
|
return Math.min(max, Math.max(min, num));
|
|
}
|