Skip to content

Commit

Permalink
Call panzoom on actual SVG element.
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdstorm committed Oct 3, 2023
1 parent 79a753f commit b21779a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lang/miniSVG/Bekijken.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ str pagina(str svg)
' \<body\>
' <svg>
' \<script\>
' var svgElement = document.getElementById(\'assenstelsel\');
' panzoom(svgElement);
' document.addEventListener(\"DOMContentLoaded\", function() {
' var svgElement = document.getElementById(\'yop\');
' panzoom(svgElement);
' });
' \</script\>
' \<body\>
'\<html\>";

0 comments on commit b21779a

Please sign in to comment.