mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
Restyle Implement Fuzzy search using rapidfuzz (#60)
This commit is contained in:
@@ -3,7 +3,8 @@ import { getElem } from "./perks";
|
||||
export default (mouseX, mouseY) => {
|
||||
const scope = getElem("app", "id");
|
||||
const contextMenu = getElem("context-menu", "class");
|
||||
// ? compute what is the mouse position relative to the container element (scope)
|
||||
// ? compute what is the mouse position relative to the container element
|
||||
// (scope)
|
||||
let { left: scopeOffsetX, top: scopeOffsetY } = scope.getBoundingClientRect();
|
||||
|
||||
scopeOffsetX = scopeOffsetX < 0 ? 0 : scopeOffsetX;
|
||||
|
||||
Reference in New Issue
Block a user