<community>of XML and SVG Developers</community>
This is a discussion on preventing zoom, the Adobe developer knowlegdebase style within the SVG Questions forums, part of the SVG Forums category; Hia all, I am still stuck in preventing zoom for certain objects -and scroll/pan for other objects.. However i came ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| I am still stuck in preventing zoom for certain objects -and scroll/pan for other objects.. However i came across this entry in the Adobe SVG developer knowlegdebase, but i didnt get it work on certain objects on the SVG canvas.. (The last line there got me wondering wether that they actually had made a SVG statement which actually could be used in such a manner.. ) How To: Prevent Zooming To disable zooming: In the svg element of the SVG file, add enableZoomAndPanControls="false". While clicking the right mouse button, Zoom In, Zoom Out menu items will be disabled. e.g.: <svg width="800" height="600" enableZoomAndPanControls="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg-20000303-stylable"> You can use Javascript also to set the attribute of SVG document element. e.g., svgDocumentElement.setAttribute("enableZoomAndPanC ontrols", "false") -Ronny |
![]() |
| Tags |
| adobe, developer, knowlegdebase, preventing, style, zoom |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Printer Ink Cartridge...
For the best printer ink cartridge you can find, click here.
compatible ink cartridges
Our compatible ink cartridges match the quality of top brand names, but cost less and last longer. See this month's special offer.
Hard disk drive data recovery north west
For the best hard disk drive data recovery in North West, put us to the test. At Data Clinic we have the expertise.