Flyer53 / jsPanel4

A JavaScript library to create highly configurable floating panels, modals, tooltips, hints/notifiers/alerts or contextmenus for use in backend solutions and other web applications.
https://jspanel.de/
Other
313 stars 57 forks source link

Pointerup event listener on close button - element behind is clicked #208

Open oldru27 opened 10 months ago

oldru27 commented 10 months ago

We have a panel opening by clicking on an element. When we open the panel on mobile and try to close it using the close button on the header section, the panel closes and directly opens again. It occurs only on mobile and when the close button is above the element behind.

One possible explanation could be that the panel is destroyed on the pointerup on the close button and then the element behind is clicked.

On the meantime, we have changed our click event listener, on the element behind the panel, toward a pointerup event listener, and it works.

Thank you, Olivier

Flyer53 commented 10 months ago

Hi Oliver, Thanks for the info. I can confirm this behaviour but can't say anything more about it currently. In case you have an idea how to get this fixed ... please share it 😏 Regards, Stefan

oldru27 commented 10 months ago

Hi, Thank you for you answer, i will let you know if we find solution. Regards, Olivier

2llco commented 10 months ago

Hi I have exactly the same behavior. On mobile only, when I close jsPanel it make a click on the element behind.