re-resizable
re-resizable copied to clipboard
Support a doubleClick on handleComponent to give the component full width
I would like you, if it's possible, to add a DoubleClick action to the handleComponent in order to give the component full width or to a certain size in case of doubeClick
I would also really like this
Came here requesting such a feature. Glad to see I'm not alone in needing this functionality, sadden to see that this library seems to be abandoned... 😞
I believe that this is actually a regression.
We were able to support this on version 4.2.1 by adding a onDoubleClick={somefunc}
to the div that was rendered by the custom component specified on the handleComponent
property.
I was able to narrow down a breakage on this behavior though somewhere between 4.3.1 and 4.3.2.
From looking at the changelog/git history, this would make me think that one of these two commits are the breaking change, but I don't really see how from looking at the code:
- https://github.com/bokuweb/re-resizable/commit/c01841d63706fd915cc69de51e0a3a7c2623e191
- https://github.com/bokuweb/re-resizable/commit/fb0a66c01c986e8f471eb5efbe8258a12344941d
Also onMouseMove still work, but not onClick or onDoubleClick. Maybe there is an event.preventDefault somewhere in mouseDown or a new element on top and prevent it?