@Override
    public void mousePressed(MouseEvent e) {
        cancelDrag = false;
        if (e.getComponent() == map) {
            xPress = e.getX()* map.getResizeConstant();
            yPress = e.getY()* map.getResizeConstant();
            xPressLocal = map.getPress().x + (map.getRelease().x - map.getPress().x)*xPress/850;
            yPressLocal = map.getPress().y + (map.getRelease().y - map.getPress().y)*yPress/660;
        }
        
        if(e.isPopupTrigger() && e.isShiftDown()) {
            popUpPosX = e.getX();
            popUpPosY = e.getY();
            view.popUp.show(e.getComponent(),(int) popUpPosX,(int) popUpPosY);
        }
    }