diff --git a/UI/ImDebugger/ImDebugger.cpp b/UI/ImDebugger/ImDebugger.cpp index a6079b36ee..18ca4ffac4 100644 --- a/UI/ImDebugger/ImDebugger.cpp +++ b/UI/ImDebugger/ImDebugger.cpp @@ -3640,7 +3640,11 @@ void ImConfig::SyncConfig(IniFile *ini, bool save) { sync.SetSection(ini->GetOrCreateSection("Settings")); sync.Sync("displayLatched", &displayLatched, false); sync.Sync("realtimePixelPreview", &realtimePixelPreview, false); +#if defined(MOBILE_DEVICE) sync.Sync("quickScrollEnabled", &quickScrollEnabled, true); +#else + sync.Sync("quickScrollEnabled", &quickScrollEnabled, false); +#endif sync.Sync("quickScrollCollapsed", &quickScrollCollapsed, false); sync.Sync("forceKeyboard", &forceKeyboard, false); sync.Sync("showKeyboardToggle", &showKeyboardToggle, true); diff --git a/UI/ImDebugger/ImDebugger.h b/UI/ImDebugger/ImDebugger.h index a6563b1fe8..9c32c1a831 100644 --- a/UI/ImDebugger/ImDebugger.h +++ b/UI/ImDebugger/ImDebugger.h @@ -132,8 +132,9 @@ struct ImConfig { float fbViewerZoom = 1.0f; // Touch / mobile helpers. - bool quickScrollEnabled = true; // Show the quick scroll strip on the right edge. - bool quickScrollCollapsed = false; // Strip collapsed to a single small button. + bool quickScrollEnabled; // Show the quick scroll strip on the right edge. + + bool quickScrollCollapsed; // Strip collapsed to a single small button. bool forceKeyboard = false; // Keyboard currently active (toggled from the bar). Asks the platform to keep the soft keyboard up. bool showKeyboardToggle = true; // Show the keyboard button in the bar. Hiding it also turns the keyboard off. bool keyboardPersist = true; // Keep the keyboard on after switching to another app and back.