Changeset 852


Ignore:
Timestamp:
02/05/14 17:25:44 (10 years ago)
Author:
ngw8
Message:

Changed MOUSE_WHEEL_THRESHOLD to 2, making it slightly easier to trigger related events. Changed MouseWheelMoved to correctly count the number of clicks, rather than always counting the number as 1.

File:
1 edited

Legend:

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

    r850 r852  
    7777
    7878        // TODO say where/how used
    79         private static final int MOUSE_WHEEL_THRESHOLD = 3;
     79        private static final int MOUSE_WHEEL_THRESHOLD = 2;
    8080
    8181        private static final int MINIMUM_RANGE_DEPRESS_TIME = 250;
     
    32673267                Navigation.ResetLastAddToBack();
    32683268
    3269                 int clicks = arg0.getClickCount();
     3269                int clicks = Math.abs(arg0.getWheelRotation());
    32703270
    32713271                if (FreeItems.getInstance().size() == 2) {
     
    32823282
    32833283                                // User must do multiple clicks to toggle the line
    3284                                 if (clicks == MOUSE_WHEEL_THRESHOLD) {
     3284                                if (clicks >= MOUSE_WHEEL_THRESHOLD) {
    32853285                                        if (arg0.isShiftDown())
    32863286                                                line.toggleArrowHeadRatio(arg0.getWheelRotation());
     
    33013301                                        .isShiftDown(), arg0.isControlDown());
    33023302
    3303                 } else if (clicks == MOUSE_WHEEL_THRESHOLD) {
     3303                } else if (clicks >= MOUSE_WHEEL_THRESHOLD) {
    33043304                        Item item = FrameUtils.getCurrentItem();
    33053305
Note: See TracChangeset for help on using the changeset viewer.