I am using svgPanZoom and visNetwork in an R/Shiny application and encountered the following strange behavior: