Changeset 1047 for trunk/src/org/expeditee/gui/FrameMouseActions.java
- Timestamp:
- 04/28/16 19:37:35 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/FrameMouseActions.java
r998 r1047 19 19 package org.expeditee.gui; 20 20 21 import java.awt.Color; 21 22 import java.awt.Image; 22 23 import java.awt.Point; … … 911 912 912 913 /* 913 * This makes it so clicking repeatedly on the frameName doesn t add the914 * This makes it so clicking repeatedly on the frameName doesn't add the 914 915 * frames to the backup stack. Only the first frame is added to the 915 916 * backup stack. … … 945 946 946 947 // Mike says... 947 // For some reason the modifiers for e are different from modifiersEx948 // For some reason the modifiers for e are different from modifiersEx 948 949 // The SwingUtilities.convertMouseEvent method changes the modifiers 949 950 _lastMouseClick = e; … … 1060 1061 // Auto-hide popups when user clicks into expeditee world 1061 1062 // If the user clicks into empty space and a popup-is showing, then 1062 // the user p orbably wants to click away the popup - therefore ignore1063 // the user probably wants to click away the popup - therefore ignore 1063 1064 // the event 1064 1065 boolean shouldConsume = PopupManager.getInstance() … … 1401 1402 if (clicked instanceof Text) { 1402 1403 Text text = (Text) clicked; 1403 /* Don t follow link when just highlighting text with the left button */1404 /* Don't follow link when just highlighting text with the left button */ 1404 1405 if (text.getText().length() == 0) 1405 1406 clicked = null; … … 1457 1458 } 1458 1459 1460 1461 if (clicked instanceof Picture) { 1462 int mouseX = DisplayIO.getMouseX(); 1463 int mouseY = FrameMouseActions.getY(); 1464 Picture clickedOnPicture = (Picture)clicked; 1465 Frame current_frame = DisplayIO.getCurrentFrame(); 1466 Color bg_col = current_frame.getBackgroundColor(); 1467 if (clickedOnPicture.MouseOverBackgroundPixel(mouseX,mouseY,bg_col)) { 1468 // Make 'clicked' null, effectively causing a back() operation 1469 clicked = null; 1470 } 1471 } 1472 1459 1473 if (clicked != null) { 1460 1474 // check item permissions … … 1500 1514 1501 1515 } else { 1516 1502 1517 IndirectMouseActions.getInstance().getBackAction().exec(new MouseInfo(clicked, clickedIn, isShiftDown, isControlDown)); 1503 1518 }
Note:
See TracChangeset
for help on using the changeset viewer.