openpencil/packages/core
Danila Poyarkov a32b134eba
Improve zoom smoothness, add absolute position cache (#21)
* Improve trackpad pinch-zoom smoothness

- Replace Math.pow(0.99, delta) with Math.exp(-delta/100) zoom curve
  for natural, symmetric scaling that handles both tiny trackpad deltas
  and large mouse wheel jumps gracefully
- Normalize wheel deltaMode (LINE → 40px, PAGE → 800px) so external
  mice on Firefox produce consistent zoom behavior
- Clamp per-flush scale factor to 0.75–1.25 to prevent jarring jumps
  from discrete mouse wheel ticks

* Add per-frame absolute position cache for SceneGraph
2026-03-03 11:44:31 +03:00
..
src Improve zoom smoothness, add absolute position cache (#21) 2026-03-03 11:44:31 +03:00
package.json Release v0.4.2 2026-03-02 18:14:35 +03:00
tsconfig.json Bump all packages to 0.4.0, fix Node.js ESM compatibility 2026-03-02 14:59:59 +03:00