style(capture): Test to remove scroll for landscape mobiles

This commit is contained in:
Tixie 2019-03-13 00:05:19 +01:00
parent 889494f569
commit 8c945d36bb
2 changed files with 11 additions and 0 deletions

View file

@ -36,6 +36,13 @@
/* Capture screen
-------------------------------------------------------------- */
.capture-body {
position: fixed;
right: 0;
left: 0;
overflow-y: hidden;
}
.capture {
flex-direction: row;
margin-top: auto;

View file

@ -46,6 +46,10 @@ export default {
},
mounted: function () {
window.objectFitPolyfill(this.$refs.preview)
document.body.classList.add('capture-body')
},
destroyed: function () {
document.body.classList.remove('capture-body')
}
}
</script>