Commit 6c910a4
committed
fix(pdf-server): clear pinch transform in same frame as canvas resize
commitPinch cleared the CSS transform BEFORE renderPage's first
await — for one frame the page snapped back to the old rendered
size, then jumped forward when the canvas resized. renderPage now
clears the transform immediately after setting canvas.style.width/
height, so the size handoff is atomic.
Also bump the wheel settle timer 150→200ms; slow trackpad pinches
can leave >150ms gaps and would commit mid-gesture.1 parent c45d034 commit 6c910a4
1 file changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3048 | 3048 | | |
3049 | 3049 | | |
3050 | 3050 | | |
| 3051 | + | |
| 3052 | + | |
| 3053 | + | |
| 3054 | + | |
| 3055 | + | |
3051 | 3056 | | |
3052 | 3057 | | |
3053 | 3058 | | |
| |||
3778 | 3783 | | |
3779 | 3784 | | |
3780 | 3785 | | |
3781 | | - | |
3782 | 3786 | | |
3783 | | - | |
| 3787 | + | |
| 3788 | + | |
| 3789 | + | |
| 3790 | + | |
| 3791 | + | |
3784 | 3792 | | |
3785 | 3793 | | |
| 3794 | + | |
| 3795 | + | |
3786 | 3796 | | |
3787 | 3797 | | |
3788 | 3798 | | |
| |||
3805 | 3815 | | |
3806 | 3816 | | |
3807 | 3817 | | |
| 3818 | + | |
| 3819 | + | |
3808 | 3820 | | |
3809 | 3821 | | |
3810 | 3822 | | |
3811 | | - | |
| 3823 | + | |
3812 | 3824 | | |
3813 | 3825 | | |
3814 | 3826 | | |
| |||
0 commit comments