Implement code changes to enhance functionality and improve performance

This commit is contained in:
Harvey Zack committed 2025-08-16 21:49:43 +08:00
1 parent ada6afca69
commit 6344a0bef9
4 files changed
+11 -13

No files matched your search

@@ -1643,10 +1643,10 @@ class Setting {
this.art.proxy(container, 'pointerdown', (event)=>{
isDroging = event.button === 0;
});
this.art.proxy(document, 'pointermove', (event)=>{
this.art.on('document:pointermove', (event)=>{
if (isDroging) updateLeft.call(this, event);
});
this.art.proxy(document, 'pointerup', (event)=>{
this.art.on('document:pointerup', (event)=>{
if (isDroging) {
isDroging = false;
updateLeft.call(this, event);