command palette: scroll to the beginning when the palette opens
This commit is contained in:
		
							parent
							
								
									81fd5a23b8
								
							
						
					
					
						commit
						30c1a69298
					
				| 
						 | 
				
			
			@ -117,7 +117,7 @@ void FurnaceGUI::drawPalette() {
 | 
			
		|||
        curPaletteChoice=i;
 | 
			
		||||
        accepted=true;
 | 
			
		||||
      }
 | 
			
		||||
      if (navigated && current) ImGui::SetScrollHereY();
 | 
			
		||||
      if ((navigated || paletteFirstFrame) && current) ImGui::SetScrollHereY();
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  ImGui::EndChild();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue