2dbde9834ab5086618df2619e2b21b78ccc863a2
larrym
  Wed Aug 3 23:59:20 2011 -0700
exeriment with using shift/cntrl to allow drag-and-select anywhere in the hgTracks images
diff --git src/hg/js/jquery.imgareaselect.js src/hg/js/jquery.imgareaselect.js
index 6bcbefd..753acf5 100644
--- src/hg/js/jquery.imgareaselect.js
+++ src/hg/js/jquery.imgareaselect.js
@@ -315,30 +315,31 @@
 
         if(options.clickClipHeight != null) {
             // This is necessary on IE to support clicks in an image which has map items.
             var found = false;
             if(typeof(options.clickClipHeight) == 'number') {
                 if(selection.y1 < options.clickClipHeight) {
                     found = true;
                 }
             } else {
                 for(var i = 0; !found && i < options.clickClipHeight.length; i++) {
                     if(selection.y1 >= options.clickClipHeight[i].top && selection.y1 < options.clickClipHeight[i].bottom) {
                         found = true;
                     }
                 }
             }
+            found = found || event.shiftKey || event.ctrlKey;
             if(!found) {
                 return false;
             }
         }
 
         resize = [ ];
 
         update();
         $a.add($o).show();
 
         jQuery(document).unbind('mouseup', cancelSelection)
             .mousemove(selectingMouseMove);
         $border2.unbind('mousemove', areaMouseMove);
 
         options.onSelectStart(img, selection);