mirror of
https://github.com/nasa/openmct.git
synced 2025-06-14 21:28:12 +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:
@ -296,7 +296,8 @@ define(
|
|||||||
startDrag: function ($event) {
|
startDrag: function ($event) {
|
||||||
subPlotBounds = $event.target.getBoundingClientRect();
|
subPlotBounds = $event.target.getBoundingClientRect();
|
||||||
mousePosition = toMousePosition($event);
|
mousePosition = toMousePosition($event);
|
||||||
if (event.altKey) {
|
// Treat any modifier key as a pan
|
||||||
|
if (event.altKey || event.shiftKey || event.ctrlKey) {
|
||||||
// Start panning
|
// Start panning
|
||||||
panStart = mousePosition;
|
panStart = mousePosition;
|
||||||
panStartBounds = panZoomStack.getPanZoom();
|
panStartBounds = panZoomStack.getPanZoom();
|
||||||
|
Reference in New Issue
Block a user