fix issues with zoom and drag