mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	fix(mobile): set scrolling state only if changed (#3034)
* fix(mobile): set scrolling state only if changed * fix: generate api --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							e3557fd80e
						
					
				
				
					commit
					ff26d3666e
				
			@@ -311,7 +311,13 @@ class ImmichAssetGridViewState extends State<ImmichAssetGridView> {
 | 
			
		||||
  Widget _buildAssetGrid() {
 | 
			
		||||
    final useDragScrolling = widget.renderList.totalAssets >= 20;
 | 
			
		||||
 | 
			
		||||
    void dragScrolling(bool active) => _scrolling = active;
 | 
			
		||||
    void dragScrolling(bool active) {
 | 
			
		||||
      if (active != _scrolling) {
 | 
			
		||||
        setState(() {
 | 
			
		||||
          _scrolling = active;
 | 
			
		||||
        });
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    final listWidget = ScrollablePositionedList.builder(
 | 
			
		||||
      padding: const EdgeInsets.only(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user