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;
 | 
					        curPaletteChoice=i;
 | 
				
			||||||
        accepted=true;
 | 
					        accepted=true;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
      if (navigated && current) ImGui::SetScrollHereY();
 | 
					      if ((navigated || paletteFirstFrame) && current) ImGui::SetScrollHereY();
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  ImGui::EndChild();
 | 
					  ImGui::EndChild();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue