Implements drag functionality for ohms law page