mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 13:21:20 -08:00
add art.isRotate
This commit is contained in:
1 parent
1cbef4c6f4
commit
af6e936854
4 files changed
+5
-4
No files matched your search
@@ -129,8 +129,7 @@ export default function progress(options) {
|
||||
|
||||
proxy($control, 'click', (event) => {
|
||||
if (event.target !== $indicator) {
|
||||
const autoOrientation = art.plugins.autoOrientation && art.plugins.autoOrientation.state;
|
||||
if (autoOrientation) {
|
||||
if (art.isRotate) {
|
||||
const { clientHeight } = document.documentElement;
|
||||
const percentage = event.pageY / clientHeight;
|
||||
const second = percentage * art.duration;
|
||||
|
||||
Reference in new issue
Block a user