Prevent tag tab scrolling to scroll bank interface

Closes #6076

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2018-10-19 12:40:26 +02:00
parent 1595492ed7
commit c1ee9d2351
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)