@@ -368,11 +368,13 @@ Real OptionPreferences::getScrollFactor(void)
368
368
return TheGlobalData->m_keyboardDefaultScrollFactor ;
369
369
370
370
Int factor = atoi (it->second .str ());
371
- if (factor < 0 )
372
- factor = 0 ;
373
- if (factor > 100 )
374
- factor = 100 ;
375
-
371
+
372
+ // TheSuperHackers @tweak xezon 11/07/2025
373
+ // No longer caps the upper limit to 100, because the options setting can go beyond that.
374
+ // No longer caps the lower limit to 0, because that would mean standstill.
375
+ if (factor < 1 )
376
+ factor = 1 ;
377
+
376
378
return factor/100 .0f ;
377
379
}
378
380
@@ -864,13 +866,12 @@ static void setDefaults( void )
864
866
865
867
// -------------------------------------------------------------------------------------------------
866
868
// // scroll speed val
867
- Int valMin, valMax;
868
- // GadgetSliderGetMinMax(sliderScrollSpeed,&valMin, &valMax);
869
- // GadgetSliderSetPosition(sliderScrollSpeed, ((valMax - valMin) / 2 + valMin));
870
869
Int scrollPos = (Int)(TheGlobalData->m_keyboardDefaultScrollFactor *100 .0f );
871
870
GadgetSliderSetPosition ( sliderScrollSpeed, scrollPos );
872
871
873
872
873
+ Int valMin, valMax;
874
+
874
875
// -------------------------------------------------------------------------------------------------
875
876
// slider music volume
876
877
GadgetSliderGetMinMax (sliderMusicVolume,&valMin, &valMax);
@@ -1189,7 +1190,7 @@ static void saveOptions( void )
1189
1190
// -------------------------------------------------------------------------------------------------
1190
1191
// scroll speed val
1191
1192
val = GadgetSliderGetPosition (sliderScrollSpeed);
1192
- if (val != - 1 )
1193
+ if (val > 0 )
1193
1194
{
1194
1195
TheWritableGlobalData->m_keyboardScrollFactor = val/100 .0f ;
1195
1196
DEBUG_LOG ((" Scroll Spped val %d, keyboard scroll factor %f" , val, TheGlobalData->m_keyboardScrollFactor ));
@@ -1838,9 +1839,17 @@ void OptionsMenuInit( WindowLayout *layout, void *userData )
1838
1839
GadgetCheckBoxSetChecked ( checkDoubleClickAttackMove, TheGlobalData->m_doubleClickAttackMove );
1839
1840
1840
1841
// set scroll speed slider
1842
+ // TheSuperHackers @tweak xezon 11/07/2025 No longer sets the slider position if the user setting
1843
+ // is set beyond the slider limits. This gives the user more freedom to customize the scroll
1844
+ // speed. The slider value remains 0.
1841
1845
Int scrollPos = (Int)(TheGlobalData->m_keyboardScrollFactor *100 .0f );
1842
- GadgetSliderSetPosition ( sliderScrollSpeed, scrollPos );
1843
- DEBUG_LOG ((" Scroll SPeed %d" , scrollPos));
1846
+ Int scrollMin, scrollMax;
1847
+ GadgetSliderGetMinMax ( sliderScrollSpeed, &scrollMin, &scrollMax );
1848
+ if (scrollPos >= scrollMin && scrollPos <= scrollMax)
1849
+ {
1850
+ GadgetSliderSetPosition ( sliderScrollSpeed, scrollPos );
1851
+ }
1852
+ DEBUG_LOG ((" Scroll Speed %d" , scrollPos));
1844
1853
1845
1854
// set the send delay check box
1846
1855
GadgetCheckBoxSetChecked (checkSendDelay, TheGlobalData->m_firewallSendDelay );
0 commit comments