allow setting a function as a drag filter