fix event argument on pan