Skip to content

Commit

Permalink
fix(xgplayer): fix fullscreen problem in Android Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangxin92 committed Sep 28, 2018
1 parent 5b0976b commit 4c6d3ba
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/xgplayer/browser/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/xgplayer/dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/xgplayer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xgplayer",
"version": "1.1.2",
"version": "1.1.3-alpha",
"description": "video player",
"main": "./dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/xgplayer/src/control/fullscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ let fullscreen = function () {
}
}
root.appendChild(btn);
['click', 'touchstart'].forEach(item => {
['click', 'touchend'].forEach(item => {
btn.addEventListener(item, function (e) {
e.preventDefault()
e.stopPropagation()
Expand Down

0 comments on commit 4c6d3ba

Please sign in to comment.