Comparing version 1.3.0 to 1.3.1
@@ -96,5 +96,7 @@ class Eplayer extends HTMLElement { | ||
down(e) { | ||
e.stopPropagation() | ||
this.disX = e.clientX - this.$('.cycle').offsetLeft | ||
document.onmousemove = e => this.move(e) | ||
document.onmouseup = () => { | ||
e.stopPropagation() | ||
document.onmousemove = null | ||
@@ -106,2 +108,3 @@ document.onmouseup = null | ||
move(e) { | ||
e.stopPropagation() | ||
let offset = e.clientX - this.disX + 7 | ||
@@ -128,3 +131,3 @@ if (offset < 0) offset = 0 | ||
this.timer = setTimeout(() => { | ||
this.$(".controls").style.bottom = -42 + "px" | ||
this.$(".controls").style.bottom = -50 + "px" | ||
this.$(".ep-video").style.bottom = 25 + "px" | ||
@@ -211,2 +214,3 @@ }, 5000) | ||
right:0; | ||
cursor:pointer; | ||
} | ||
@@ -349,3 +353,3 @@ .options{ | ||
<div class="mark loading"></div> | ||
<div class="controls" style="bottom:-45px"> | ||
<div class="controls" style="bottom:-50px"> | ||
<div class="progress"> | ||
@@ -405,3 +409,3 @@ <b class="bg"></b> | ||
}) | ||
this.$('.progress').onclick = e => this.progress(e) | ||
this.$('.progress').onmousedown = e => this.progress(e) | ||
this.video.onwaiting = () => this.waiting() | ||
@@ -428,2 +432,3 @@ this.video.oncanplay = () => this.canplay() | ||
// export default Eplayer | ||
customElements.define('e-player',Eplayer) | ||
@@ -430,0 +435,0 @@ |
@@ -96,5 +96,7 @@ class Eplayer extends HTMLElement { | ||
down(e) { | ||
e.stopPropagation() | ||
this.disX = e.clientX - this.$('.cycle').offsetLeft | ||
document.onmousemove = e => this.move(e) | ||
document.onmouseup = () => { | ||
e.stopPropagation() | ||
document.onmousemove = null | ||
@@ -106,2 +108,3 @@ document.onmouseup = null | ||
move(e) { | ||
e.stopPropagation() | ||
let offset = e.clientX - this.disX + 7 | ||
@@ -128,3 +131,3 @@ if (offset < 0) offset = 0 | ||
this.timer = setTimeout(() => { | ||
this.$(".controls").style.bottom = -42 + "px" | ||
this.$(".controls").style.bottom = -50 + "px" | ||
this.$(".ep-video").style.bottom = 25 + "px" | ||
@@ -211,2 +214,3 @@ }, 5000) | ||
right:0; | ||
cursor:pointer; | ||
} | ||
@@ -349,3 +353,3 @@ .options{ | ||
<div class="mark loading"></div> | ||
<div class="controls" style="bottom:-45px"> | ||
<div class="controls" style="bottom:-50px"> | ||
<div class="progress"> | ||
@@ -405,3 +409,3 @@ <b class="bg"></b> | ||
}) | ||
this.$('.progress').onclick = e => this.progress(e) | ||
this.$('.progress').onmousedown = e => this.progress(e) | ||
this.video.onwaiting = () => this.waiting() | ||
@@ -429,2 +433,3 @@ this.video.oncanplay = () => this.canplay() | ||
export default Eplayer | ||
// customElements.define('e-player',Eplayer) | ||
@@ -431,0 +436,0 @@ function getTimeStr(time) { |
{ | ||
"name": "eplayer", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "A web-components html5 video player facing future", | ||
@@ -5,0 +5,0 @@ "main": "./dist/eplayer.em.js", |
Sorry, the diff of this file is not supported yet
66006
1923