mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
responsiveness improvements
+ extract track context menu handler into a composable
This commit is contained in:
@@ -23,7 +23,7 @@ export default defineStore("context-menu", {
|
||||
y: 500,
|
||||
normalizedX: false,
|
||||
normalizedY: false,
|
||||
src: "",
|
||||
src: <null | string>"",
|
||||
}),
|
||||
actions: {
|
||||
showContextMenu(
|
||||
@@ -41,13 +41,13 @@ export default defineStore("context-menu", {
|
||||
this.options = options;
|
||||
});
|
||||
|
||||
const yo = normalize(e.clientX, e.clientY);
|
||||
const xy = normalize(e.clientX, e.clientY);
|
||||
|
||||
this.x = yo.normalX;
|
||||
this.y = yo.normalY;
|
||||
this.x = xy.normalX;
|
||||
this.y = xy.normalY;
|
||||
|
||||
this.normalizedX = yo.normalizedX;
|
||||
this.normalizedY = yo.normalizedY;
|
||||
this.normalizedX = xy.normalizedX;
|
||||
this.normalizedY = xy.normalizedY;
|
||||
this.src = src;
|
||||
},
|
||||
hideContextMenu() {
|
||||
|
||||
Reference in New Issue
Block a user