Commit 4d57ed3
authored
Persisting rotation on resetToValidBounds
This implementation doesn't perfectly make sure all parts of the image are within bounds because it doesn't take into account how the "bounds" rectangle expands due to the corners rotating around. However, it is a much more intuitive UX than having the rotation completely reset on every move.1 parent 98a2978 commit 4d57ed3
File tree
1 file changed
+1
-1
lines changed- image/src/main/java/com/smarttoolfactory/image/zoom
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| |||
0 commit comments