Rewild Your Web
web browser dweb
16
fork

Configure Feed

Select the types of activity you want to include in your feed.

webview: improve screenshoting

webbeef 33a9fe81 44564e19

+12 -1
+12 -1
resources/browserhtml/system/web_view.js
··· 799 799 this.captureScreenshot(); 800 800 } 801 801 802 + updated(_changedProperties) { 803 + if (this.active) { 804 + if (this.rafHandle) { 805 + cancelAnimationFrame(this.rafHandle); 806 + } 807 + this.rafHandle = requestAnimationFrame(() => 808 + this.captureScreenshot(true), 809 + ); 810 + } 811 + } 812 + 802 813 // Capture a screenshot and cache it for overview mode 803 814 captureScreenshot(immediate = false) { 804 815 // Debounce: clear any pending capture ··· 831 842 // Delay capture to allow page to render 832 843 this.screenshotTimeout = setTimeout(() => { 833 844 doCapture(); 834 - }, 500); 845 + }, 400); 835 846 } 836 847 837 848 onfocus() {