Maybe you should interpret the swipe here and emit more specific events like "next", "previous", and "close" instead.  "itemChange" doesn't really make much sense here.

But this will code will change if we do smoother transitions, so you don't have to change it now.