Skip to content

Commit

Permalink
Fixes broken quantity slider when in containermenu
Browse files Browse the repository at this point in the history
  • Loading branch information
Odie committed Sep 19, 2018
1 parent 418d2a8 commit 6eadc43
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ItemMenus/ContainerMenu.as
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,11 @@ class ContainerMenu extends ItemMenu
//
// Limit processing of these events to something reasonable.
if(_pauseInputHandling)
return false;
return true;

skyui.util.Input.rateLimit(this, "_pauseInputHandling", 10);


// VR specific behavior
//
// Currently, we're not getting a whole lot of keycodes from the game. We cannot
Expand All @@ -138,7 +139,10 @@ class ContainerMenu extends ItemMenu
//
// If we've reached the beginning the category list and the player is still asking to
// navigate left, switch active segment instead.
if (details.navEquivalent == NavigationCode.LEFT && inventoryLists.categoryList.selectionAtBeginningOfSegment()) {
var bShouldCaptureInput = (pathToFocus[0] != itemCard);
if (bShouldCaptureInput &&
Shared.GlobalFunc.IsKeyPressed(details) &&
details.navEquivalent == NavigationCode.LEFT && inventoryLists.categoryList.selectionAtBeginningOfSegment()) {

// Only actually toggle the tab if we're not being rate limited
if(!_pauseTabSwitch) {
Expand Down

0 comments on commit 6eadc43

Please sign in to comment.