Skip to content

Commit

Permalink
disable scroll zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
Niqui O'Neill committed Apr 10, 2019
1 parent effc703 commit a5726f2
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dist/js/iiif-annotation.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/iiif-annotation.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/iiif-annotation.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/iiif-annotation.js.map

Large diffs are not rendered by default.

Binary file modified docs/dist2.zip
Binary file not shown.
12 changes: 6 additions & 6 deletions docs/imagestoryboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Item here: [all settings example]({{site.baseurl}}/storyboard_settings)
```
## Single annotation setting
```
<iiif-storyboard annotationlist="https://dnoneill.github.io/annotate/annotations/00000001jp2-list.json" styling="fit: fill; panorzoom: pan; toggleoverlay: true; textposition: left"></iiif-storyboard>
<iiif-storyboard annotationlist="https://dnoneill.github.io/annotate/annotations/00000001jp2-list.json" styling="fit: fill; panorzoom: pan; toggleoverlay: true; textposition: left; mapmarker: <i class='fas fa-map-pin'></i>"></iiif-storyboard>
<style>
[id="\30 0000001jp2"] .box {
Expand Down Expand Up @@ -113,12 +113,12 @@ Item here: [all settings example]({{site.baseurl}}/storyboard_settings)
}
[id="\30 0000001jp2"] .left {
margin-left: -1.5vw;
margin-top: -4vh;
margin-left: -.5vw;
margin-top: calc(-39px + .5vh)
}
</style>
```
<iiif-storyboard annotationlist="https://dnoneill.github.io/annotate/annotations/00000001jp2-list.json" styling="fit: fill; panorzoom: pan; toggleoverlay: true; textposition: left"></iiif-storyboard>
<iiif-storyboard annotationlist="https://dnoneill.github.io/annotate/annotations/00000001jp2-list.json" styling="fit: fill; panorzoom: pan; toggleoverlay: true; textposition: left; mapmarker: <i class='fas fa-map-pin'></i>"></iiif-storyboard>
<style>
[id="\30 0000001jp2"] .box {
border: 2px solid blue;
Expand Down Expand Up @@ -148,8 +148,8 @@ Item here: [all settings example]({{site.baseurl}}/storyboard_settings)
}

[id="\30 0000001jp2"] .left {
margin-left: -1.5vw;
margin-top: -4vh;
margin-left: -.5vw;
margin-top: calc(-39px + .5vh)
}
</style>

Expand Down
4 changes: 2 additions & 2 deletions src/components/storyboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ export default {
showNavigationControl: false,
homeFillsViewer: fit,
constrainDuringPan: true,
visibilityRatio: 1
visibilityRatio: 1,
zoomPerScroll: 1
});
var viewer = this.viewer;
var zoomsections = this.zoomsections;
Expand Down Expand Up @@ -324,7 +325,6 @@ export default {
var maxheight = this.viewer.viewport.getContainerSize()['y'] - this.viewer.viewport.viewportToWindowCoordinates(new openseadragon.Point(overlayrect['x'], overlayrect['y']))['y'];
elem.classList.add(`${this.settings.textposition}`);
elem.style.maxHeight = `${maxheight-35}px`;
this.viewer.setMouseNavEnabled(false);
if (existingoverlay) {
this.viewer.updateOverlay(elem, overlayrect);
} else {
Expand Down

0 comments on commit a5726f2

Please sign in to comment.