Commit 612a865
committed
fix: Zoom to limit before canceling zoom events
Previous fix had a problem that with large enough zoom speed, the
scrolling would end far from the limit resolution. This is especially
visible with tile layers, where the user wouldn't see the top level of
the tiles they configured map to show.
This fix ensures we always zoom to limit before stopping it.1 parent 9d20d40 commit 612a865
1 file changed
Lines changed: 6 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | 310 | | |
320 | 311 | | |
321 | 312 | | |
322 | 313 | | |
323 | 314 | | |
324 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
325 | 318 | | |
326 | 319 | | |
327 | 320 | | |
| |||
336 | 329 | | |
337 | 330 | | |
338 | 331 | | |
339 | | - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
340 | 335 | | |
341 | 336 | | |
342 | 337 | | |
| |||
0 commit comments