Premium support for our pure JavaScript UI components


Post by philipp kühne »

Hi, currently, we listen to the events eventmouseenter and eventmouseleave to know when an user enters or leaves an event. This work's us for. However, in the API documentation I didn't find these events, instead eventMouseOver and eventMouseOut. I noticed that they fire for both elements: b-sch-event and b-sch-event-wrap, which creates some overhead for us because we don't need the differentiation between these elements. Are eventmouseenter and eventmouseleave really deprecated or can we continue to use them?

Cheers, Philipp


Post by Animal »

It certainly works in the examples I run:

Screenshot 2022-08-26 at 12.02.50.png
Screenshot 2022-08-26 at 12.02.50.png (61.66 KiB) Viewed 354 times

Post by philipp kühne »

Yes, but do you recommend to use them or is there any downside?


Post by tasnim »

They are written and provided by us and supported to be used.

Best,
Tasnim


Post by Animal »

But it seems the mouseover and mouseout events work well too:

Screenshot 2022-08-26 at 12.28.31.png
Screenshot 2022-08-26 at 12.28.31.png (62.71 KiB) Viewed 349 times

Post by Animal »

I see what you mean. Mouseover fires for internal mouseover events when moving inside the event bar.

IMO, this is the reason why the mouse enter and leave events were implements. They don't bubble.


Post by Animal »

I have created a ticket to document and explain this issue better: https://github.com/bryntum/support/issues/5124


Post by philipp kühne »

Thanks for finding out and updating the documation!


Post Reply