Prevent scaling transform below minzoom and above maxzoom in pinch zoom action

Pull request for issue #1097.