[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.
This commit is contained in:
Victor Woeltjen 2015-06-22 18:12:25 -07:00
parent 8199d1d9d9
commit e516d886a6

View File

@ -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();