integration with mouse motion