From 715e36ddee68c1c4cf3b0ac7621fb86fedb7a578 Mon Sep 17 00:00:00 2001 From: tcarver <tjc> Date: Thu, 1 Sep 2011 14:19:06 +0100 Subject: [PATCH] changed to use SHIFT to drag ends when zoomed out --- uk/ac/sanger/artemis/components/FeatureDisplay.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/uk/ac/sanger/artemis/components/FeatureDisplay.java b/uk/ac/sanger/artemis/components/FeatureDisplay.java index 323bce3f7..6ca6f7ee1 100644 --- a/uk/ac/sanger/artemis/components/FeatureDisplay.java +++ b/uk/ac/sanger/artemis/components/FeatureDisplay.java @@ -3887,9 +3887,8 @@ public class FeatureDisplay extends EntryGroupPanel // note: ALT_MASK and BUTTON2_MASK are the same value // so check this is not BUTTON1 to allow BUTTON1+ALT to drag - if( clicked_thing == null || - ((event.getModifiers() & InputEvent.BUTTON1_MASK) == 0 && - (event.getModifiers() & InputEvent.BUTTON2_MASK) != 0)) + if( clicked_thing == null || + (event.getModifiers() & InputEvent.BUTTON2_MASK) != 0) { // if the user presses the mouse button 2 on feature or segment we treat // it like the feature/segment isn't there @@ -4037,7 +4036,7 @@ public class FeatureDisplay extends EntryGroupPanel if(this_segment.getStart().getStrand() == new_click_range.getStrand() && this_segment.canDirectEdit()) { - if(event.isAltDown()) + if(event.isShiftDown()) { if(new_click_range.getStart().getPosition() >= this_segment.getStart().getPosition() && new_click_range.getStart().getPosition() <= this_segment.getStart().getPosition()+60) -- GitLab