Working on tap behavior of scatter and flippables.
This commit is contained in:
+1
-6
@@ -72,7 +72,7 @@ if (Capabilities.supportsTemplate()) {
|
||||
flipTemplate,
|
||||
new ImageLoader('./examples/king.jpeg'),
|
||||
new ImageLoader('./examples/women.jpeg'),
|
||||
{ onUpdate: e => console.log(e)})
|
||||
{ clickOnTap: true})
|
||||
flip.load().then((flip) => {
|
||||
flip.centerAt({ x: 150, y: 120})
|
||||
})
|
||||
@@ -80,10 +80,5 @@ 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>
|
||||
|
||||
Reference in New Issue
Block a user