@Override
protected void mouseMovedOrUp(int x, int y, int button) {
if (button == 0 && !Mouse.isButtonDown(button)) {
if (dragStartX == x && dragStartY == y && !dragging) {
setMenuVisible(true);
coords = map.mapOutsideToCoords(new Point(x, y));
clickedWaypoint = getClickedWaypoint(coords.getX(), coords.getY());
focus_mode = -1;
if (withinManhattanLength(map.getPlayerPosition(), coords, 2)) {
coords = map.getPlayerPosition();
this.y = (int) SpoutClient.getHandle().thePlayer.posY;