react-draggable
react-draggable copied to clipboard
I just want my Element that can only be moved to viewport,because my element is position of fixed。but I set bounds="body" and cannot work,is still can move in the direction of down while out of viewpoint
trafficstars
<Draggable
disabled={!isDraggable}
handle=".br-modal__header"
defaultClassNameDragged="br-modal__default-drag"
positionOffset={unblock ? { x: '-50%', y: '-50%' } : undefined}
cancel={resizable ? '.react-resizable-handle' : undefined}
bounds="body"
>
{resizeElement}
</Draggable>
