Commit cf87ae2
committed
Enable window flushing after setting scroll position
The window flush was being enabled before the scroll position was set,
causing the preview to briefly display at position 0 (the flash).
Now:
1. Scale webview
2. Set scroll position
3. Refine with syncScrollers if needed
4. Enable window flushing (makes preview visible)
This ensures the preview is never visible at the wrong scroll position.
Related to #391 parent f506888 commit cf87ae2
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
| 234 | + | |
238 | 235 | | |
239 | 236 | | |
240 | 237 | | |
| |||
249 | 246 | | |
250 | 247 | | |
251 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
252 | 255 | | |
253 | 256 | | |
254 | 257 | | |
| |||
0 commit comments