you could use cancelevents, and offactivate is useless, as when you click, it's only for a split second that it registers, you don't keep triggering it, which means that offactivate would trigger just after onactivate, so you could just use onactivate with a delay