Skip to content

Commit

Permalink
MicroDagr - Fix waypoint scrolling (acemod#6700)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror authored Nov 19, 2018
1 parent 03e01f0 commit a357675
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addons/microdagr/functions/fnc_updateDisplay.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ case (APP_MODE_WAYPOINTS): {
} forEach _waypoints;

_currentIndex = (_currentIndex max 0) min (count _waypoints);
_wpListBox lbSetCurSel _currentIndex;
if ((lbCurSel _wpListBox) != _currentIndex) then {
_wpListBox lbSetCurSel _currentIndex;
};

//Reset focus to a dummy ctrl (top button), otherwise HOME/POS1 key goes to top of listBox and has keybind blocked
ctrlSetFocus (_display displayCtrl IDC_TOPMENUBUTTON);
Expand Down

0 comments on commit a357675

Please sign in to comment.