fix: 全屏

This commit is contained in:
unanmed 2024-02-04 19:32:34 +08:00
parent 646f9e3ab0
commit 63179995cd
2 changed files with 1 additions and 23 deletions

View File

@ -415,7 +415,7 @@ main.prototype.loadAsync = async function (mode, callback) {
if (auto && !core.domStyle.isVertical) { if (auto && !core.domStyle.isVertical) {
try { try {
Mota.Plugin.require('utils_g').maxGameScale(); Mota.Plugin.require('utils_g').maxGameScale(1);
requestAnimationFrame(() => { requestAnimationFrame(() => {
var style = getComputedStyle(main.dom.gameGroup); var style = getComputedStyle(main.dom.gameGroup);
var height = parseFloat(style.height); var height = parseFloat(style.height);

View File

@ -25,28 +25,6 @@
@click="setFullscreen" @click="setFullscreen"
/> />
</div> </div>
<!-- <div id="background-gradient"></div>
<div id="buttons">
<right-outlined id="cursor" />
<TransitionGroup name="start">
<span
class="start-button"
v-for="(v, i) of toshow"
:id="v"
:key="v"
:selected="selected === v"
:showed="showed"
@click="clickStartButton(v)"
@mouseenter="
movein(
$event.target as HTMLElement,
toshow.length - i - 1
)
"
>{{ text[i] }}</span
>
</TransitionGroup>
</div> -->
<div id="buttons-container"> <div id="buttons-container">
<div id="buttons"> <div id="buttons">
<template v-if="!inHard"> <template v-if="!inHard">