Events: Drag with boundaries
Boundaries can be imposed on dragging by using the dragBounds property.
It accepts top, left, right, and bottom properties in either pixels or percentages.
const config = {
draggable: 'x',
dragBounds: { left: '-100%', right: '100%' }
}