Commit 7441b09
fix(iv): do not resize on open and other zoom fixes (AcademySoftwareFoundation#4766)
Fixes AcademySoftwareFoundation#4718
See the demo of problems that were fixed and of fixes in action over
here: https://www.loom.com/share/3bdee20b32434e0bbba47d393928d4f7
There are fixed for three problems:
1) Window is not resizing when new image is loaded in (it still does
when image being loaded is the only one)
2) When you using scroll mouse wheel it is taking into account where the
cursor is (there is some corner case when it doesn't do it perfectly,
that I can't catch when it doesn't follow it exactly, but a bit of
panning fixes it)
~~3) Switching between images recenters (if image is smaller) or making
some other panning nessery to have image in the viewport. I believe it
is doing same stuff what happens when window is resized.~~ This has been
reverted.
---------
Signed-off-by: Aleksandr Motsjonov <[email protected]>
Signed-off-by: Scott Wilson <[email protected]>1 parent 8bf54be commit 7441b09
File tree
5 files changed
+50
-57
lines changed- src
- iv
- libtexture
5 files changed
+50
-57
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
854 | 854 | | |
855 | 855 | | |
856 | 856 | | |
857 | | - | |
858 | | - | |
859 | | - | |
860 | 857 | | |
| 858 | + | |
861 | 859 | | |
862 | 860 | | |
863 | 861 | | |
864 | | - | |
865 | 862 | | |
866 | 863 | | |
867 | 864 | | |
| |||
887 | 884 | | |
888 | 885 | | |
889 | 886 | | |
890 | | - | |
891 | 887 | | |
892 | 888 | | |
893 | 889 | | |
| |||
2009 | 2005 | | |
2010 | 2006 | | |
2011 | 2007 | | |
2012 | | - | |
2013 | 2008 | | |
2014 | | - | |
| 2009 | + | |
2015 | 2010 | | |
2016 | 2011 | | |
2017 | 2012 | | |
2018 | 2013 | | |
2019 | | - | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
2020 | 2017 | | |
2021 | | - | |
2022 | | - | |
2023 | 2018 | | |
2024 | | - | |
2025 | | - | |
2026 | | - | |
2027 | | - | |
2028 | | - | |
2029 | | - | |
2030 | | - | |
2031 | | - | |
2032 | | - | |
2033 | | - | |
2034 | | - | |
2035 | | - | |
2036 | | - | |
2037 | | - | |
2038 | | - | |
2039 | | - | |
2040 | | - | |
2041 | | - | |
| 2019 | + | |
2042 | 2020 | | |
2043 | | - | |
| 2021 | + | |
2044 | 2022 | | |
2045 | 2023 | | |
2046 | 2024 | | |
2047 | | - | |
2048 | 2025 | | |
2049 | | - | |
| 2026 | + | |
2050 | 2027 | | |
2051 | 2028 | | |
2052 | 2029 | | |
2053 | 2030 | | |
2054 | | - | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
2055 | 2034 | | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
2056 | 2045 | | |
2057 | | - | |
2058 | | - | |
2059 | | - | |
2060 | | - | |
2061 | | - | |
2062 | | - | |
2063 | | - | |
2064 | | - | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
2065 | 2053 | | |
2066 | | - | |
| 2054 | + | |
| 2055 | + | |
2067 | 2056 | | |
2068 | 2057 | | |
2069 | 2058 | | |
2070 | 2059 | | |
2071 | | - | |
2072 | | - | |
| 2060 | + | |
2073 | 2061 | | |
2074 | 2062 | | |
2075 | 2063 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
272 | 274 | | |
273 | 275 | | |
274 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1218 | 1218 | | |
1219 | 1219 | | |
1220 | 1220 | | |
1221 | | - | |
| 1221 | + | |
1222 | 1222 | | |
1223 | 1223 | | |
1224 | 1224 | | |
1225 | 1225 | | |
1226 | 1226 | | |
1227 | | - | |
| 1227 | + | |
1228 | 1228 | | |
1229 | 1229 | | |
1230 | 1230 | | |
| |||
1328 | 1328 | | |
1329 | 1329 | | |
1330 | 1330 | | |
1331 | | - | |
1332 | | - | |
1333 | | - | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
1334 | 1336 | | |
1335 | 1337 | | |
1336 | 1338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| |||
0 commit comments