mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 05:41:20 -08:00
update event.button === 0
This commit is contained in:
1 parent
e9e1e08de5
commit
d531c41735
4 files changed
+7
-7
No files matched your search
@@ -3299,8 +3299,8 @@ function progress(options) {
|
||||
(0, _utils.setStyle)($tip, "display", "none");
|
||||
(0, _utils.setStyle)($hover, "display", "none");
|
||||
});
|
||||
proxy($control, "mousedown", ()=>{
|
||||
isDroging = true;
|
||||
proxy($control, "mousedown", (event)=>{
|
||||
isDroging = event.button === 0;
|
||||
});
|
||||
proxy(document, "mousemove", (event)=>{
|
||||
if (isDroging) {
|
||||
@@ -3397,7 +3397,7 @@ function volume(option) {
|
||||
else {
|
||||
let isDroging = false;
|
||||
proxy($slider, "mousedown", (event)=>{
|
||||
isDroging = true;
|
||||
isDroging = event.button === 0;
|
||||
art.volume = getVolumeFromEvent(event);
|
||||
});
|
||||
proxy(document, "mousemove", (event)=>{
|
||||
|
||||
Reference in new issue
Block a user