mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix: Disable draggable panels on small devices (#20629)
* fix for draggable on mobile * elaborate in code comment
This commit is contained in:
parent
514f2beafc
commit
cd07c3e652
@ -58,11 +58,17 @@ function GridWrapper({
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Disable draggable if mobile device, solving an issue with unintentionally
|
||||
moving panels. https://github.com/grafana/grafana/issues/18497
|
||||
*/
|
||||
const draggable = width <= 420 ? false : isDraggable;
|
||||
|
||||
return (
|
||||
<ReactGridLayout
|
||||
width={lastGridWidth}
|
||||
className={className}
|
||||
isDraggable={isDraggable}
|
||||
isDraggable={draggable}
|
||||
isResizable={isResizable}
|
||||
containerPadding={[0, 0]}
|
||||
useCSSTransforms={false}
|
||||
|
Loading…
Reference in New Issue
Block a user