Merge pull request #729 from devLotto/hiscore-hover

hiscoreplugin: show skill details on hover instead of click
This commit is contained in:
Adam
2018-02-27 19:57:49 -05:00
committed by GitHub

View File

@@ -351,12 +351,11 @@ public class HiscorePanel extends PluginPanel
log.warn(null, ex);
}
// Show skill details on click
// Show skill details on hover
label.addMouseListener(new MouseInputAdapter()
{
// mouseReleased feels better than mouseClick UX-wise
@Override
public void mouseReleased(MouseEvent e)
public void mouseEntered(MouseEvent e)
{
JLabel source = (JLabel) e.getSource();
String skillName = (String) source.getClientProperty(SKILL_NAME);