Commit b5c5907
feat(compass, preferences): implement zoom level persistence COMPASS-9905 (#7363)
* feat: add optional zoom level to InternalUserPreferences
* feat: implement debounced zoom level saving and restoration
* fix: simplify zoom level setting by removing validation checks
* fix: validate zoom level before restoration to ensure it falls within the acceptable range
* fix: remove console log for restoring zoom level
* Update packages/compass/src/app/application.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix: prevent memory leaks in zoom timeout handling
* imprv: execute zoom process first
* Update packages/compass/src/app/application.tsx
Co-authored-by: Nikola Irinchev <irinchev@me.com>
* fix: clarify comment for zoom level clamping
* Revert "fix: clarify comment for zoom level clamping"
This reverts commit bd6d862.
* fix: clarify comment for zoom level clamping
* fix: simplify zoom level clamping code
* fix: zoomLevel saving process runs in the background
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Nikola Irinchev <irinchev@me.com>1 parent e3c783e commit b5c5907
File tree
2 files changed
+54
-3
lines changed- packages
- compass-preferences-model/src
- compass/src/app
2 files changed
+54
-3
lines changedLines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| |||
459 | 460 | | |
460 | 461 | | |
461 | 462 | | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
462 | 474 | | |
463 | 475 | | |
464 | 476 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
370 | 401 | | |
371 | 402 | | |
372 | | - | |
| 403 | + | |
| 404 | + | |
373 | 405 | | |
| 406 | + | |
374 | 407 | | |
375 | 408 | | |
376 | 409 | | |
377 | 410 | | |
378 | 411 | | |
379 | 412 | | |
380 | | - | |
| 413 | + | |
| 414 | + | |
381 | 415 | | |
| 416 | + | |
382 | 417 | | |
383 | 418 | | |
384 | 419 | | |
385 | 420 | | |
386 | 421 | | |
387 | 422 | | |
388 | | - | |
| 423 | + | |
| 424 | + | |
389 | 425 | | |
390 | 426 | | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
391 | 430 | | |
392 | 431 | | |
393 | 432 | | |
| |||
0 commit comments