new delegate system
optimised the pan gesture