mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
hide toolbar
This commit is contained in:
parent
2f2285711d
commit
e12a626efb
@ -74,6 +74,7 @@ $.ControlAnchor = {
|
||||
* @param {Element} container - the element to control will be anchored too.
|
||||
*/
|
||||
$.Control = function ( element, options, container ) {
|
||||
|
||||
var parent = element.parentNode;
|
||||
if (typeof options === 'number')
|
||||
{
|
||||
@ -150,6 +151,8 @@ $.Control = function ( element, options, container ) {
|
||||
} else {
|
||||
parent.appendChild( this.wrapper );
|
||||
}
|
||||
|
||||
this.wrapper.style.display = "none";
|
||||
};
|
||||
|
||||
/** @lends OpenSeadragon.Control.prototype */
|
||||
|
@ -2993,7 +2993,7 @@ function onCanvasDrag( event ) {
|
||||
gestureSettings = this.gestureSettingsByDeviceType( event.pointerType );
|
||||
|
||||
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.applyConstraints();
|
||||
}
|
||||
|
@ -23,6 +23,23 @@
|
||||
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>
|
||||
</head>
|
||||
<body>
|
||||
|
Loading…
Reference in New Issue
Block a user