devbookhq/splitter

Preventing selection and pointer events while dragging

Closed this issue · 0 comments

Hi, is there a way to prevent selection and pointer events while resizing the splitter ?
I tried creating overlay on mousedown which gets removed on mouseup, but that results in resizing snapping back to original size.
I also tried to set splitter children style to userSelect: 'none', pointerEvents: 'none' which works partially, but ideally I would wanna disable the whole viewport from these events because if I am resizing and and I get to minSize and then I go over those element I get bunch of menus/toolbars opens, so its not the best experience.