1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-09-09 04:30:50 +02:00

Fix zoom out when click outside index slides

This commit is contained in:
Luis
2017-04-18 20:29:09 +02:00
parent 344b018db6
commit 4dde8fe8fb
4 changed files with 11 additions and 7 deletions

View File

@@ -103,7 +103,8 @@ export default class Zoom {
slideNumber.textContent = `${elem.i+1}`;
div.appendChild(slideNumber);
// Zoom out when click in slide "border"
div.addEventListener('click', this.ws_.toggleZoom);
const obj = this;
div.addEventListener('click', () => obj.toggleZoom());
this.setSizes_(div, wrap, elem);
}