mirror of
https://github.com/immich-app/immich.git
synced 2025-12-03 23:29:46 +09:00
fix: asset_viewer page viewing experience (#20889)
* fix: zoomed in effect on swiped when bottom sheet is open * fix: memory leaked * fix: asset out of range when swiping in asset_viewer
This commit is contained in:
@@ -86,6 +86,7 @@ class _ImageWrapperState extends State<ImageWrapper> {
|
||||
Size? _imageSize;
|
||||
Object? _lastException;
|
||||
StackTrace? _lastStack;
|
||||
bool _didLoadSynchronously = false;
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
@@ -130,9 +131,11 @@ class _ImageWrapperState extends State<ImageWrapper> {
|
||||
_loadingProgress = null;
|
||||
_lastException = null;
|
||||
_lastStack = null;
|
||||
|
||||
_didLoadSynchronously = synchronousCall;
|
||||
}
|
||||
|
||||
synchronousCall ? setupCB() : setState(setupCB);
|
||||
synchronousCall && !_didLoadSynchronously ? setupCB() : setState(setupCB);
|
||||
}
|
||||
|
||||
void handleError(dynamic error, StackTrace? stackTrace) {
|
||||
|
||||
Reference in New Issue
Block a user