mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01: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
@@ -171,8 +171,8 @@ export default function progress(options) {
|
||||
setStyle($hover, 'display', 'none');
|
||||
});
|
||||
|
||||
proxy($control, 'mousedown', () => {
|
||||
isDroging = true;
|
||||
proxy($control, 'mousedown', (event) => {
|
||||
isDroging = event.button === 0;
|
||||
});
|
||||
|
||||
proxy(document, 'mousemove', (event) => {
|
||||
|
||||
@@ -55,7 +55,7 @@ export default function volume(option) {
|
||||
let isDroging = false;
|
||||
|
||||
proxy($slider, 'mousedown', (event) => {
|
||||
isDroging = true;
|
||||
isDroging = event.button === 0;
|
||||
art.volume = getVolumeFromEvent(event);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user