Changeset 927


Ignore:
Timestamp:
11/15/14 14:38:29 (10 years ago)
Author:
bln4
Message:

Method setTextCursor modified to allow support for Text.UP and Text.DOWN to interact with magnetic constraints

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/DisplayIO.java

    r920 r927  
    188188                        newMouse.x = DisplayIO.getFloatMouseX();
    189189                        newMouse.y = DisplayIO.getFloatMouseY();
    190                 }               
     190                } else if(cursorMovement == Text.UP) {
     191                        MagneticConstraints.getInstance().topBorderHit(text);
     192                        newMouse.x = DisplayIO.getFloatMouseX();
     193                        newMouse.y = DisplayIO.getFloatMouseY();
     194                } else if(cursorMovement == Text.DOWN) {
     195                        MagneticConstraints.getInstance().bottomBorderHit(text);
     196                        newMouse.x = DisplayIO.getFloatMouseX();
     197                        newMouse.y = DisplayIO.getFloatMouseY();
     198                }
    191199
    192200                if (!newSize && cursorType == Item.TEXT_CURSOR) {
Note: See TracChangeset for help on using the changeset viewer.