mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 23:51:20 -08:00
Implement code changes to enhance functionality and improve performance
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user