Files
README.md

Tauri Smooth Resize #

Usage #

import { resize } from 'tauri-smooth-resize'
resize(600, 400)

Tauri window.innerSize() bug #

There's a bug in Tauri 1.0.0-beta.8 that causes it to return old values for window.innerSize() after the user resizes a window. It works correctly in the next branch. You can specify a specific commit as a dependency in Cargo.toml like this:

[dependencies]
tauri = { git = "https://github.com/tauri-apps/tauri", rev = "f8b98ed", features = ["api-all"] }

Dev instructions #

Get started #

  1. Install Node.js (v14 works)
  2. Install Rust (v1.50 works)
  3. Follow the Tauri setup guide
  4. Run npm install
  5. Run the example:
    • cd example
    • npm install
    • npm run dev

Commands #

  • npm run build: Builds src/index.ts to ./build
  • npm run lint: Lint
  • npm run test: Run tests from example/tests