Added support for custom drag handling