private void doMouseDraggingCheck(){
        if (Mouse.isButtonDown(0)) {
            int mX = Mouse.getX();
            int mY = GameApplication.getScreenHeight() - Mouse.getY();

            int[] rect = computeDraggingRect();
            if (mX >= rect[0] && mX <= rect[2]){
                if (mY >= rect[1] && mY <= rect[3]){
                    int movedX = mX - (rect[2] / rect[0]);
                    int movedY = mY - (rect[3] / rect[1]);
                    onDragged(movedX, movedY);
                    setPos(movedX, movedY);
                }
            }
        }
    }