re-resizable icon indicating copy to clipboard operation
re-resizable copied to clipboard

Support a doubleClick on handleComponent to give the component full width

Open axvargas opened this issue 3 years ago • 4 comments

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

axvargas avatar Nov 06 '21 01:11 axvargas

I would also really like this

MurrayJack avatar Dec 08 '21 02:12 MurrayJack

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... 😞

rfgamaral avatar Jan 18 '22 10:01 rfgamaral

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

alne4294 avatar Mar 08 '22 19:03 alne4294

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?

thien-do avatar Oct 10 '22 14:10 thien-do