Skip to content

Commit

Permalink
fix(xgplayer): resizePosition在rotate为-1时兼容
Browse files Browse the repository at this point in the history
  • Loading branch information
hongqx committed Dec 11, 2023
1 parent d36b1c3 commit c843dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/xgplayer/src/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -2025,7 +2025,7 @@ class Player extends MediaProxy {
let offsetY = 0
let offsetX = 0
let scale = 1
const _t = Math.abs(rotate / 90)
const _t = rotate < 0 ? 0 : Math.abs(rotate / 90)
const { root, innerContainer } = this
const width = root.offsetWidth
const height = innerContainer ? innerContainer.offsetHeight : root.offsetHeight
Expand Down

0 comments on commit c843dda

Please sign in to comment.