feat: zoom content with Ctrl+wheel (5% step, 50-300%)
- Ctrl+wheel zooms preview and editor; 90ms throttle; preventDefault stops WebView2 page zoom - Range widened to 50-300%, step unified at 5% for wheel, toolbar buttons and Ctrl +/- - No mouse-anchor (same scrolling behavior as button zoom) - Add agent/AGENTS.md: workspace boundary is the top rule; build/test temp dirs stay in target/ - build.ps1 redirects TEMP/TMP into target/tmp
This commit is contained in:
@@ -16,6 +16,12 @@ $ErrorActionPreference = 'Stop'
|
||||
$repoRoot = (Resolve-Path (Join-Path $PSScriptRoot '..\..')).Path
|
||||
Set-Location $repoRoot
|
||||
|
||||
# 工作区规则(agent/AGENTS.md):构建/测试的临时文件也留在 target\ 下,不污染 %TEMP%。
|
||||
$tmpRoot = Join-Path $repoRoot 'target\tmp'
|
||||
New-Item -ItemType Directory -Force $tmpRoot | Out-Null
|
||||
$env:TEMP = $tmpRoot
|
||||
$env:TMP = $tmpRoot
|
||||
|
||||
$cargo = Join-Path $env:USERPROFILE '.cargo\bin\cargo.exe'
|
||||
if (-not (Test-Path $cargo)) {
|
||||
$cargo = (Get-Command cargo -ErrorAction Stop).Source
|
||||
|
||||
Reference in New Issue
Block a user