onScaleChanged

Listen to window scale change. Emitted when the window's scale factor has changed. The following user actions can cause DPI changes:

  • Changing the display's resolution.

  • Changing the display's scale factor (e.g. in Control Panel on Windows).

  • Moving the window to a display with a different scale factor.