Fixed flippable doctest.

This commit is contained in:
2019-07-05 09:34:22 +02:00
parent fc6b30f03c
commit 0c190f1f76
6 changed files with 19 additions and 4 deletions
+6 -1
View File
@@ -66,7 +66,7 @@ templates.
</main>
<script class="doctest">
let scatterContainer = new DOMScatterContainer(main)
let scatterContainer = new DOMScatterContainer(main, {stopEvents: false})
if (Capabilities.supportsTemplate()) {
let flip = new DOMFlip(scatterContainer,
flipTemplate,
@@ -80,5 +80,10 @@ if (Capabilities.supportsTemplate()) {
else {
alert("Templates not supported, use Edge, Chrome, Safari or Firefox.")
}
setTimeout(function() {
const infoBtn = document.querySelector('.infoBtn')
InteractionMapper.on('tap', infoBtn, event => console.log('go'))
}, 2000)
</script>
</body>