Merge pull request #6080 from deathbeam/fix-scrolling

Prevent tag tab scrolling to scroll bank interface
This commit is contained in:
Adam
2018-10-21 15:00:49 -04:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@@ -315,7 +315,7 @@ public class BankTagsPlugin extends Plugin implements MouseWheelListener
@Override
public MouseWheelEvent mouseWheelMoved(MouseWheelEvent event)
{
clientThread.invokeLater(() -> tabInterface.handleWheel(event));
tabInterface.handleWheel(event);
return event;
}
}

View File

@@ -319,7 +319,8 @@ public class TabInterface
if (canvasBounds.contains(event.getPoint()))
{
scrollTab(event.getWheelRotation());
event.consume();
clientThread.invoke(() -> scrollTab(event.getWheelRotation()));
}
}
@@ -686,7 +687,7 @@ public class TabInterface
private boolean isHidden()
{
Widget widget = client.getWidget(WidgetInfo.BANK_CONTAINER);
return !config.tabs() || widget == null || widget.isHidden();
return !config.tabs() || widget == null;
}
private void loadTab(String tag)