Open husker-dev opened 5 years ago
There are possibly two problems in play here:
Reordering uses simple mouse listeners so placing any component that has it's own mouse listener on top of it will block reordering through dragging the component itself. I can't really do much about it because that's how Swing works in general. If you have a panel with mouse listener and a button on top of it covering the whole panel size - panel's mouse listener will never receive any events. You can only workaround it in your custom button mouse listener by manually finding underlying panel and passing an appropriate mouse event to it - I might look into having a simple utility for that.
New hover
state actually doesn't use mouse listener to track hover state - it uses global AWT listener for that, so it shouldn't interfere with the reordering. However I will double check that and post an update once I'm completely sure about it.
Also WebComponentPane
needs an update at this point, I've added it into the v1.2.11 schedule: #535 - you can track this issue as I will add all updates there (as well as in your specific issues).
There are some complications I've encountered with this component, so I'll be moving it to v1.2.12 update as it might take some time and I don't want to delay the current update release any further.
Still working on this in background, but some important changes and fixes will be done to the library first (planned in upcoming v1.3.0 version). WebLaF versioning is also getting adjusted to appropriately reflect changes made in different updates and to allow me to push important fixes outside of larger updates.
When I add
mouseListener
to element's content inWebComponentPane
, reordering stops working. Reordering only works using grippers but doesn't work using drag element's content. I think it comes from # 519