修复动画导致的fix元素定位失效

This commit is contained in:
结发受长生
2019-05-22 23:04:37 +08:00
parent a850a6ff07
commit 816c5dcd40
9 changed files with 22 additions and 16 deletions
+5 -1
View File
@@ -14,7 +14,11 @@ function init() {
Array.prototype.forEach.call($a, function($em){
$em.style.display = 'none'
})
}
}
// 避免由于动画带来的fix元素定位失效, 移到动画元素外层
var sideOpt = document.querySelector('.wrap-side-operation')
document.getElementById('container').appendChild(sideOpt)
}
export default { init }
+5 -1
View File
@@ -38,7 +38,11 @@ new Vue({
stop (event) {
event.stopPropagation()
},
openSlider (event, type) {
openSlider (event, type, isMobile) {
if(isMobile && this.isShow) {
this.hideSlider()
return
}
event.stopPropagation()
this.innerArchive = false
this.friends = false