Make impress-console-button actually clickable (#651)

Changed the onclick handler to trigger the impress:console:open event
and not use the impressConsole() global function any more. The latter
is considered deprecated now that impressConsole is integrated into
impress.js itself.

Also catch some errors that appear in event handlers when the target
for the click event was immediately removed from DOM.

Fixes #651
This commit is contained in:
Henrik Ingo
2018-01-01 15:05:55 +02:00
parent b86214c6e9
commit e92e02ccb4
10 changed files with 57 additions and 12 deletions

View File

@@ -231,3 +231,4 @@ body.impress-mouse-timeout {
.impress-enabled { pointer-events: none }
.impress-enabled #impress { pointer-events: auto }
.impress-enabled #impress-toolbar { pointer-events: auto }
.impress-enabled #impress-console-button { pointer-events: auto }