Extract formant features such as frequency, power, energy, and bandwidth of formants at syllable or word level from audio sources in a web browser using WebAudio API.
Apache License 2.0
28
stars
4
forks
source link
Fixing Canvas Size for Ultra-Wide Screens (32:9 Aspect Ratio) #1
During the testing on my local environment, which utilizes a 32:9 ultra-wide screen, it was noticed that the canvas was not sizing appropriately. It was extending to the full screen size even when the browser window was not maximized. This could potentially affect users with similar screen setups, offering a subpar user experience.
Changes
This pull request addresses the issue by modifying the method of acquiring the screen width. Instead of using window.screen.availWidth which retrieves the total screen width, the change has been made to window.innerWidth. This ensures that the canvas sizes itself according to the actual inner width of the browser window.
During the testing on my local environment, which utilizes a 32:9 ultra-wide screen, it was noticed that the canvas was not sizing appropriately. It was extending to the full screen size even when the browser window was not maximized. This could potentially affect users with similar screen setups, offering a subpar user experience.
Changes
This pull request addresses the issue by modifying the method of acquiring the screen width. Instead of using
window.screen.availWidth
which retrieves the total screen width, the change has been made towindow.innerWidth
. This ensures that the canvas sizes itself according to the actual inner width of the browser window.Before:
After: