hide toolbar

This commit is contained in:
Hamza Tatheer 2022-10-23 23:51:27 +05:00
parent 2f2285711d
commit e12a626efb
3 changed files with 21 additions and 1 deletions

View File

@ -74,6 +74,7 @@ $.ControlAnchor = {
* @param {Element} container - the element to control will be anchored too. * @param {Element} container - the element to control will be anchored too.
*/ */
$.Control = function ( element, options, container ) { $.Control = function ( element, options, container ) {
var parent = element.parentNode; var parent = element.parentNode;
if (typeof options === 'number') if (typeof options === 'number')
{ {
@ -150,6 +151,8 @@ $.Control = function ( element, options, container ) {
} else { } else {
parent.appendChild( this.wrapper ); parent.appendChild( this.wrapper );
} }
this.wrapper.style.display = "none";
}; };
/** @lends OpenSeadragon.Control.prototype */ /** @lends OpenSeadragon.Control.prototype */

View File

@ -2993,7 +2993,7 @@ function onCanvasDrag( event ) {
gestureSettings = this.gestureSettingsByDeviceType( event.pointerType ); gestureSettings = this.gestureSettingsByDeviceType( event.pointerType );
if (gestureSettings.dblClickToZoom && THIS[ this.hash ].draggingToZoom){ if (gestureSettings.dblClickToZoom && THIS[ this.hash ].draggingToZoom){
var factor = Math.pow( this.zoomPerDblTapDrag, event.delta.y / 100 ); var factor = Math.pow( this.zoomPerDblTapDrag, event.delta.y );
this.viewport.zoomBy(factor); this.viewport.zoomBy(factor);
this.viewport.applyConstraints(); this.viewport.applyConstraints();
} }

View File

@ -23,6 +23,23 @@
background-color: rgba(255, 0, 0, 0.3); background-color: rgba(255, 0, 0, 0.3);
} }
[title ='Zoom in'] {
display: none;
}
[title ='Zoom out'] {
display: none;
}
[title ='Go home'] {
display: none;
}
[title ='Toggle full page'] {
display: none;
}
</style> </style>
</head> </head>
<body> <body>