This fixes #186 by using document.activeElement.shadowRoot.activeElement instead of document.activeElement.
It also sets a fallback value of 250 ms for slideDuration, as the setSlideDuration() method is no longer able to read the value from the stylesheet when used in a web component. Feel free to improve this solution.
This fixes #186 by using
document.activeElement.shadowRoot.activeElement
instead ofdocument.activeElement
.It also sets a fallback value of 250 ms for
slideDuration
, as thesetSlideDuration()
method is no longer able to read the value from the stylesheet when used in a web component. Feel free to improve this solution.