private void moveViewOnMousesDrag(Point p) {
			int dx = 0, dy = 0;
			int move = 10;
			int border = 10;
			boolean requireMove = false;
			if(p.x < border) {
				dx = move;
				requireMove = true;
			}
			if(p.x > imageSizeX - border) {
				dx = -move;
				requireMove = true;
			}
			if(p.y < border) {
				dy = 10;
				requireMove = true;
			}
			if(p.y > imageSizeY - border) {
				dy = -move;
				requireMove = true;
			}
			if(requireMove) {
				pt.moveView(dx, dy);
			}
		}