Hi VYang,
vyang <[EMAIL PROTECTED]> wrote on 06/12/2008 04:41:17 PM:
> MouseEvent getButton return 0 (NOBUTTON) when its inside a mouseDragged
> method (using org.apache.batik.swing.gvt.InteractorAdapter) when the
button
> held down is BUTTON1. Is this a bug or is it developed this way?
Well we just pass along the MouseEvent from Swing:
public void mouseDragged(MouseEvent e) {
[...]
selectInteractor(e);
if (interactor != null) {
interactor.mouseDragged(e);
deselectInteractor();
} else if (eventDispatcher != null) {
dispatchMouseDragged(e);
}
}