mirror of
https://github.com/nasa/openmct.git
synced 2024-12-29 17:38:53 +00:00
[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:
parent
8199d1d9d9
commit
e516d886a6
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user