Changed dragPanel's bindings to events.