/[libvob]/libvob/org/nongnu/libvob/mouse/MouseMultiplexer.java
ViewVC logotype

Diff of /libvob/org/nongnu/libvob/mouse/MouseMultiplexer.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by tjl, Wed Aug 6 08:39:42 2003 UTC revision 1.4 by tjl, Wed Aug 6 09:30:09 2003 UTC
# Line 137  public class MouseMultiplexer { Line 137  public class MouseMultiplexer {
137          if(e.getType() == e.MOUSE_PRESSED) {          if(e.getType() == e.MOUSE_PRESSED) {
138              // Ignore second button while dragging              // Ignore second button while dragging
139              if(currentDrag != null) return false;              if(currentDrag != null) return false;
140              currentDrag = mousePressListeners[(e.getModifiers() & ALLMASK) + MAXMASK * e.getButton()]              MousePressListener mpl = mousePressListeners[(e.getModifiers() & ALLMASK) + MAXMASK * e.getButton()];
141                                  .pressed(e.getX(), e.getY());              if(mpl == null) return false;
142                currentDrag = mpl.pressed(e.getX(), e.getY());
143              if(currentDrag != null) {              if(currentDrag != null) {
144                  currentDragButton = e.getButton();                  currentDragButton = e.getButton();
145                  currentDrag.startDrag(e.getX(), e.getY());                  currentDrag.startDrag(e.getX(), e.getY());

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26