From e516d886a64f9b3ffa76e6784ca8e3192df79957 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Mon, 22 Jun 2015 18:12:25 -0700 Subject: [PATCH] [Plot] Treat any modifier key as pan Treat any modifier key as a pan gesture when click-dragging in a plot; this is more resilient to cross-platform nuances. WTD-1273. --- platform/features/plot/src/SubPlot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/features/plot/src/SubPlot.js b/platform/features/plot/src/SubPlot.js index 2d5d2cc43d..a762e4fd81 100644 --- a/platform/features/plot/src/SubPlot.js +++ b/platform/features/plot/src/SubPlot.js @@ -296,7 +296,8 @@ define( startDrag: function ($event) { subPlotBounds = $event.target.getBoundingClientRect(); mousePosition = toMousePosition($event); - if (event.altKey) { + // Treat any modifier key as a pan + if (event.altKey || event.shiftKey || event.ctrlKey) { // Start panning panStart = mousePosition; panStartBounds = panZoomStack.getPanZoom();