[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/tool MoveTool.java,1.14,1.15
Status: Pre-Alpha
Brought to you by:
henryml
From: Nordholt <nor...@us...> - 2005-10-27 15:03:37
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15941 Modified Files: MoveTool.java Log Message: made so move and rotate can not happen at same time Index: MoveTool.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/MoveTool.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** MoveTool.java 21 Sep 2005 09:35:29 -0000 1.14 --- MoveTool.java 27 Oct 2005 15:03:27 -0000 1.15 *************** *** 133,136 **** --- 133,142 ---- */ protected void dragged(MouseEvent e) { + //have to use getModifiersEx() getButton() gives wrong results + if ((e.getModifiersEx() & + MouseEvent.BUTTON3_DOWN_MASK) + == MouseEvent.BUTTON3_DOWN_MASK) { + return; + } if (dragPlane != null) { int x = e.getX(); |