Hi in my project i am implementing pick and drag features on the Objects.
But the problem is movement of object is either fast or slow in comparison to mouse motion …to overcome this i changed the scaling factor in my method
private static void rightDrag(MouseEvent e) {
float scalingFactor=130f;
mouseDrag_X = (e.getX() - mouseClickPos_X) / scalingFactor;
mouseDrag_Y = -(e.getY() - mouseClickPos_Y) / scalingFactor;
mouseClickPos_X = e.getX();
mouseClickPos_Y = e.getY();
isTranslationScheduled = true;
}
but now what happens is when i resize my screen …obviously again the mismatch comes…so what should i use so that automatically this scalling factor ajdust itself to the changed dimension…

) But it’s not the complete picking.