mirror of
https://github.com/NoCrypt/migu.git
synced 2026-03-11 17:45:32 +00:00
fix: auto fullscreen logic
This commit is contained in:
parent
f55b9eb46d
commit
97eb9cd3c4
3 changed files with 1 additions and 3 deletions
|
|
@ -18,6 +18,7 @@
|
|||
|
||||
const view = getContext('view')
|
||||
function viewMedia () {
|
||||
if (SUPPORTS.isAndroid) document.querySelector('.content-wrapper').requestFullscreen()
|
||||
if (data.onclick) {
|
||||
data.onclick()
|
||||
return
|
||||
|
|
@ -30,7 +31,6 @@
|
|||
|
||||
let thisElement;
|
||||
if (SUPPORTS.isAndroid){
|
||||
document.querySelector('.content-wrapper').requestFullscreen()
|
||||
click(thisElement, viewMedia)
|
||||
} else {
|
||||
hoverClick(thisElement, [viewMedia, setHoverState])
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
const view = getContext('view')
|
||||
function viewMedia () {
|
||||
$view = media
|
||||
if (SUPPORTS.isAndroid) document.fullscreenElement ? document.exitFullscreen() : document.querySelector('.content-wrapper').requestFullscreen()
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@
|
|||
const view = getContext('view')
|
||||
function viewMedia () {
|
||||
$view = media
|
||||
if (SUPPORTS.isAndroid) document.fullscreenElement ? document.exitFullscreen() : document.querySelector('.content-wrapper').requestFullscreen()
|
||||
}
|
||||
function setHoverState (state) {
|
||||
preview = state
|
||||
|
|
|
|||
Loading…
Reference in a new issue