Enter leave events

Maybe you want this in your repo? I found it nice and use it in my panel repo for myself.