-
Notifications
You must be signed in to change notification settings - Fork 276
Enter event firing for all elements matching selector even if outside of container #76
Comments
Btw for my own purposes I need only elements in the container to be selected, so (I think) I fixed it by changing the I changed the line:
to:
|
You're right… if a container element has been passed then this should only affect children of that container. Good catch! I'll push a fix soon 😄 |
Nice, glad I could help this awesome project! |
@silvestreh Hey I got one quick question if you don't mind. OnScreen doesn't seem to support scrolling inside my container, since my container element has |
Ok well it seems like it was the case that there was some issues when
Also with the changes to the querySelectorAll in my previous comments I had to add something like this in the
I'm sure I haven't done things the best way, but hopefully it helps. |
Sorry for a bunch of messages. Just want to add that there's some issues with my updates when the container is not a scrolling element. I'll post the fix when I get to it. |
I'm not sure if this is expected functionality or a bug. I initialize my OnScreen object using a container. In this case my container is a jQuery object named
wrap
. As soon as theenter
event is set, all elements in my HTML with the class.reveal
get immediately triggered, even if they are not inside of my container element. Is this correct? I assumed that only elements inside the container would be handled.The text was updated successfully, but these errors were encountered: