mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
refactor logo, bottom bar and perks.js
- add new logo - add tsconfig.json - move logo to new component - update bottombar - remove props from hotkeys and progress bar - convert perks.js -> perks.ts
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import perks from "./perks";
|
||||
import { getElem } from "./perks";
|
||||
|
||||
export default (mouseX, mouseY) => {
|
||||
const scope = perks.getElem("app", "id");
|
||||
const contextMenu = perks.getElem("context-menu", "class");
|
||||
const scope = getElem("app", "id");
|
||||
const contextMenu = getElem("context-menu", "class");
|
||||
// ? compute what is the mouse position relative to the container element (scope)
|
||||
let { left: scopeOffsetX, top: scopeOffsetY } = scope.getBoundingClientRect();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user