Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: window.requestAnimationFrame(update)无法在窗口最小化时,正常使用; #42511

Open
3 tasks done
2573825854 opened this issue Jun 15, 2024 · 3 comments
Open
3 tasks done

Comments

@2573825854
Copy link

Preflight Checklist

Electron Version

29.4.2

What operating system are you using?

Windows

Operating System Version

Windows 10 专业版

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

在electron中,使用了 window.requestAnimationFrame(update);我已经设置了backgroundThrottling: false,在最小化窗口时,程序应当正常更新

Actual Behavior

实际上会变成1秒1帧,并且我找不到解决的办法

Testcase Gist URL

No response

Additional Information

No response

@2573825854 2573825854 changed the title [Bug]: [Bug]: 我是通过iframe读取的window.requestAnimationFrame(update); Jun 15, 2024
@2573825854 2573825854 changed the title [Bug]: 我是通过iframe读取的window.requestAnimationFrame(update); [Bug]: window.requestAnimationFrame(update)无法在窗口最小化时,正常使用; Jun 15, 2024
@codebytere codebytere added the blocked/need-repro Needs a test case to reproduce the bug label Jun 15, 2024
@electron-issue-triage
Copy link

Hello @2573825854. Thanks for reporting this and helping to make Electron better!

Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use.

Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests.

Now adding the blocked/need-repro Needs a test case to reproduce the bug label for this reason. After you make a test case, please link to it in a followup comment. This issue will be closed in 10 days if the above is not addressed.

@Ktibit
Copy link

Ktibit commented Jun 16, 2024

transaction

@electron-issue-triage electron-issue-triage bot removed the blocked/need-repro Needs a test case to reproduce the bug label Jun 16, 2024
@2573825854
Copy link
Author

我在electron的中使用iframe,iframe中使用了window.requestAnimationFrame(update);我设置了backgroundThrottling: false,但在最小化时,window.requestAnimationFrame(update);还是变成了1秒1帧,我该怎么把iframe的可见性保持为visible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants