-
Notifications
You must be signed in to change notification settings - Fork 316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for mouseenter and mouseleave events. #619
Comments
Hey, thanks for the suggestion. Can you elaborate a bit more about your use case. And particularly, how is it that these events work better than Looking at some documentation, it actually looks like our |
Here's a quick demo in HTML https://jsfiddle.net/2tm530fd/ to illustrate my point. As you move the mouse inside the outer div, a For my particular use case, I need the |
Right, I see. So I believe what you could do here is to check if I am tempted though to change things up a bit, so that we follow the behavior of the web DOM events. Effectively rename the current behavior of |
I need to track what the mouse is on top off, but only for a subset of elements. I've found the mouseenter/mouseleave HTML events handle this quite nicely, so it would be nice if Rml had this too.
Also, having had a look into how this library handles events in the past, I was able to implement this into RmlUi 5.1 with just a few lines of code, by duplicating the corresponding mouseover / mouseout events but with bubbling set to false. It's a simple approach but seems to be working fine for me so far.
The text was updated successfully, but these errors were encountered: